diff --git a/CHANGELOG.md b/CHANGELOG.md
index 61a3a591679..ea82de98120 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,6 +9,24 @@ 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.0-rc.1] -- 2025-08-01
+
+### Added
+- Add modebardisable attribute to cartesian axes, to allow fine control over which buttons affect which axes [[#7358](https://github.com/plotly/plotly.js/pull/7358)]
+- Add `unifiedhovertitle.text` to format unified hover titles [[#7439](https://github.com/plotly/plotly.js/pull/7439)]
+- Add `layout.hoverlabel.showarrow` (and `trace.hoverlabel.showarrow`) attribute to allow hiding the triangular caret that appears on the hover label box [[#7451](https://github.com/plotly/plotly.js/pull/7451)]
+- Add `minorloglabels` to cartesian axes [[#7468](https://github.com/plotly/plotly.js/pull/7468)]
+- Make modebar keyboard-accessible via tabbing [[#7492](https://github.com/plotly/plotly.js/pull/7492)], with thanks to @davidangarita1 for the contribution!
+
+### Changed
+- Refactor files related to UN topojson [[#7481](https://github.com/plotly/plotly.js/pull/7481)]
+
+### Fixed
+- Fix hidden ticklabels taking up plot space [[#7417](https://github.com/plotly/plotly.js/pull/7417)]
+- Fix editable shapes (regression introduced in 2.34.0) [[#7470](https://github.com/plotly/plotly.js/pull/7470)],
+ with thanks to @my-tien for the contribution!
+
+
## [3.0.3] -- 2025-07-23
### Fixed
@@ -20,9 +38,9 @@ where X.Y.Z is the semver of most recent plotly.js release.
### Fixed
- Fix installing dependencies in node v22 [[#7381](https://github.com/plotly/plotly.js/pull/7381)], with thanks to @chaigh-uk for the contribution!
- Fix Persian calendar leap year [[#7456](https://github.com/plotly/plotly.js/pull/7456)]
- - Fix scroll wheel zoom for geo subplots in Safari [#7474](https://github.com/plotly/plotly.js/pull/7474)
+ - Fix scroll wheel zoom for geo subplots in Safari [[#7474](https://github.com/plotly/plotly.js/pull/7474)]
- Add method to check for WebKit WebView user agent string [[#7479](https://github.com/plotly/plotly.js/pull/7479)]
- - Fix edit colorbar title [7487](https://github.com/plotly/plotly.js/pull/7487)
+ - Fix edit colorbar title [[7487](https://github.com/plotly/plotly.js/pull/7487)]
## [3.1.0-rc.0] -- 2025-07-15
diff --git a/CITATION.cff b/CITATION.cff
index 33a3785790e..d8dab310919 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.0-rc.0
+version: 3.1.0-rc.1
doi: 10.5281/zenodo.13964707
-date-released: 2025-07-15
+date-released: 2025-08-01
url: "https://github.com/plotly/plotly.js"
diff --git a/README.md b/README.md
index 56d98f8062b..bbc601b4564 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/dist/README.md b/dist/README.md
index 2094901ff30..75254a397bc 100644
--- a/dist/README.md
+++ b/dist/README.md
@@ -46,9 +46,9 @@ The main plotly.js bundles weight in at:
| 10.6 MB | 4.5 MB | 1.4 MB | 10.9 MB |
#### CDN links
-> https://cdn.plot.ly/plotly-3.1.0-rc.0.js
+> https://cdn.plot.ly/plotly-3.1.0-rc.1.js
-> https://cdn.plot.ly/plotly-3.1.0-rc.0.min.js
+> https://cdn.plot.ly/plotly-3.1.0-rc.1.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 | 1009 kB | 349.4 kB |
+| 2.6 MB | 1012.1 kB | 350.6 kB |
#### CDN links
-> https://cdn.plot.ly/plotly-basic-3.1.0-rc.0.js
+> https://cdn.plot.ly/plotly-basic-3.1.0-rc.1.js
-> https://cdn.plot.ly/plotly-basic-3.1.0-rc.0.min.js
+> https://cdn.plot.ly/plotly-basic-3.1.0-rc.1.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 | 447.3 kB |
+| 3.3 MB | 1.3 MB | 448.2 kB |
#### CDN links
-> https://cdn.plot.ly/plotly-cartesian-3.1.0-rc.0.js
+> https://cdn.plot.ly/plotly-cartesian-3.1.0-rc.1.js
-> https://cdn.plot.ly/plotly-cartesian-3.1.0-rc.0.min.js
+> https://cdn.plot.ly/plotly-cartesian-3.1.0-rc.1.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.1 MB | 398.9 kB |
+| 2.9 MB | 1.1 MB | 399.8 kB |
#### CDN links
-> https://cdn.plot.ly/plotly-geo-3.1.0-rc.0.js
+> https://cdn.plot.ly/plotly-geo-3.1.0-rc.1.js
-> https://cdn.plot.ly/plotly-geo-3.1.0-rc.0.min.js
+> https://cdn.plot.ly/plotly-geo-3.1.0-rc.1.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.1 MB | 1.5 MB | 513.8 kB |
+| 4.1 MB | 1.5 MB | 514.6 kB |
#### CDN links
-> https://cdn.plot.ly/plotly-gl3d-3.1.0-rc.0.js
+> https://cdn.plot.ly/plotly-gl3d-3.1.0-rc.1.js
-> https://cdn.plot.ly/plotly-gl3d-3.1.0-rc.0.min.js
+> https://cdn.plot.ly/plotly-gl3d-3.1.0-rc.1.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.7 MB | 1.4 MB | 506 kB |
+| 3.7 MB | 1.4 MB | 507 kB |
#### CDN links
-> https://cdn.plot.ly/plotly-gl2d-3.1.0-rc.0.js
+> https://cdn.plot.ly/plotly-gl2d-3.1.0-rc.1.js
-> https://cdn.plot.ly/plotly-gl2d-3.1.0-rc.0.min.js
+> https://cdn.plot.ly/plotly-gl2d-3.1.0-rc.1.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.4 MB | 1.8 MB | 564.6 kB |
+| 4.4 MB | 1.8 MB | 565.6 kB |
#### CDN links
-> https://cdn.plot.ly/plotly-mapbox-3.1.0-rc.0.js
+> https://cdn.plot.ly/plotly-mapbox-3.1.0-rc.1.js
-> https://cdn.plot.ly/plotly-mapbox-3.1.0-rc.0.min.js
+> https://cdn.plot.ly/plotly-mapbox-3.1.0-rc.1.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.8 MB | 1.1 MB | 383.1 kB |
+| 2.8 MB | 1.1 MB | 384.2 kB |
#### CDN links
-> https://cdn.plot.ly/plotly-finance-3.1.0-rc.0.js
+> https://cdn.plot.ly/plotly-finance-3.1.0-rc.1.js
-> https://cdn.plot.ly/plotly-finance-3.1.0-rc.0.min.js
+> https://cdn.plot.ly/plotly-finance-3.1.0-rc.1.min.js
#### npm packages
@@ -255,9 +255,9 @@ The `strict` partial bundle contains trace modules `bar`, `barpolar`, `box`, `ca
| 11.4 MB | 4.9 MB | 1.5 MB |
#### CDN links
-> https://cdn.plot.ly/plotly-strict-3.1.0-rc.0.js
+> https://cdn.plot.ly/plotly-strict-3.1.0-rc.1.js
-> https://cdn.plot.ly/plotly-strict-3.1.0-rc.0.min.js
+> https://cdn.plot.ly/plotly-strict-3.1.0-rc.1.min.js
#### npm packages
diff --git a/dist/plot-schema.json b/dist/plot-schema.json
index 161815bbaf3..0eecd329096 100644
--- a/dist/plot-schema.json
+++ b/dist/plot-schema.json
@@ -3021,7 +3021,13 @@
"min": -1,
"valType": "integer"
},
- "role": "object"
+ "role": "object",
+ "showarrow": {
+ "description": "Sets whether or not to show the hover label arrow/triangle pointing to the data point.",
+ "dflt": true,
+ "editType": "none",
+ "valType": "boolean"
+ }
},
"hovermode": {
"description": "Determines the mode of hover interactions. If *closest*, a single hoverlabel will appear for the *closest* point within the `hoverdistance`. If *x* (or *y*), multiple hoverlabels will appear for multiple points at the *closest* x- (or y-) coordinate within the `hoverdistance`, with the caveat that no more than one hoverlabel will appear per trace. If *x unified* (or *y unified*), a single hoverlabel will appear multiple points at the closest x- (or y-) coordinate within the `hoverdistance` with the caveat that no more than one hoverlabel will appear per trace. In this mode, spikelines are enabled by default perpendicular to the specified axis. If false, hover interactions are disabled.",
@@ -5197,6 +5203,17 @@
"min": 0,
"valType": "number"
},
+ "minorloglabels": {
+ "description": "Determines how minor log labels are displayed. If *small digits*, small digits i.e. 2 or 5 are displayed. If *complete*, complete digits are displayed. If *none*, no labels are displayed.",
+ "dflt": "small digits",
+ "editType": "plot",
+ "valType": "enumerated",
+ "values": [
+ "small digits",
+ "complete",
+ "none"
+ ]
+ },
"nticks": {
"description": "Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to *auto*.",
"dflt": 0,
@@ -5894,6 +5911,17 @@
"min": 0,
"valType": "number"
},
+ "minorloglabels": {
+ "description": "Determines how minor log labels are displayed. If *small digits*, small digits i.e. 2 or 5 are displayed. If *complete*, complete digits are displayed. If *none*, no labels are displayed.",
+ "dflt": "small digits",
+ "editType": "plot",
+ "valType": "enumerated",
+ "values": [
+ "small digits",
+ "complete",
+ "none"
+ ]
+ },
"nticks": {
"description": "Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to *auto*.",
"dflt": 0,
@@ -13907,6 +13935,17 @@
"valType": "number"
}
},
+ "minorloglabels": {
+ "description": "Determines how minor log labels are displayed. If *small digits*, small digits i.e. 2 or 5 are displayed. If *complete*, complete digits are displayed. If *none*, no labels are displayed.",
+ "dflt": "small digits",
+ "editType": "calc",
+ "valType": "enumerated",
+ "values": [
+ "small digits",
+ "complete",
+ "none"
+ ]
+ },
"mirror": {
"description": "Determines if the axis lines or/and ticks are mirrored to the opposite side of the plotting area. If *true*, the axis lines are mirrored. If *ticks*, the axis lines and ticks are mirrored. If *false*, mirroring is disable. If *all*, axis lines are mirrored on all shared-axes subplots. If *allticks*, axis lines and ticks are mirrored on all shared-axes subplots.",
"dflt": false,
@@ -13920,6 +13959,19 @@
"allticks"
]
},
+ "modebardisable": {
+ "description": "Disables certain modebar buttons for this axis. *autoscale* disables the autoscale buttons, *zoominout* disables the zoom-in and zoom-out buttons.",
+ "dflt": "none",
+ "editType": "modebar",
+ "extras": [
+ "none"
+ ],
+ "flags": [
+ "autoscale",
+ "zoominout"
+ ],
+ "valType": "flaglist"
+ },
"nticks": {
"description": "Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to *auto*.",
"dflt": 0,
@@ -14951,6 +15003,16 @@
"editType": "none",
"valType": "any"
},
+ "unifiedhovertitle": {
+ "editType": "none",
+ "role": "object",
+ "text": {
+ "description": "Template string used for rendering the title that appear on x or y unified hover box. Variables are inserted using %{variable}, for example \"y: %{y}\". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example \"Price: %{y:$.2f}\". https://github.com/d3/d3-format/tree/v1.4.5#d3-format 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}\". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax.",
+ "dflt": "",
+ "editType": "none",
+ "valType": "string"
+ }
+ },
"visible": {
"description": "A single toggle to hide the axis while preserving interaction like dragging. Default is true when a cheater plot is present on the axis, otherwise false",
"editType": "plot",
@@ -15468,6 +15530,17 @@
"valType": "number"
}
},
+ "minorloglabels": {
+ "description": "Determines how minor log labels are displayed. If *small digits*, small digits i.e. 2 or 5 are displayed. If *complete*, complete digits are displayed. If *none*, no labels are displayed.",
+ "dflt": "small digits",
+ "editType": "calc",
+ "valType": "enumerated",
+ "values": [
+ "small digits",
+ "complete",
+ "none"
+ ]
+ },
"mirror": {
"description": "Determines if the axis lines or/and ticks are mirrored to the opposite side of the plotting area. If *true*, the axis lines are mirrored. If *ticks*, the axis lines and ticks are mirrored. If *false*, mirroring is disable. If *all*, axis lines are mirrored on all shared-axes subplots. If *allticks*, axis lines and ticks are mirrored on all shared-axes subplots.",
"dflt": false,
@@ -15481,6 +15554,19 @@
"allticks"
]
},
+ "modebardisable": {
+ "description": "Disables certain modebar buttons for this axis. *autoscale* disables the autoscale buttons, *zoominout* disables the zoom-in and zoom-out buttons.",
+ "dflt": "none",
+ "editType": "modebar",
+ "extras": [
+ "none"
+ ],
+ "flags": [
+ "autoscale",
+ "zoominout"
+ ],
+ "valType": "flaglist"
+ },
"nticks": {
"description": "Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to *auto*.",
"dflt": 0,
@@ -16195,6 +16281,16 @@
"editType": "none",
"valType": "any"
},
+ "unifiedhovertitle": {
+ "editType": "none",
+ "role": "object",
+ "text": {
+ "description": "Template string used for rendering the title that appear on x or y unified hover box. Variables are inserted using %{variable}, for example \"y: %{y}\". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example \"Price: %{y:$.2f}\". https://github.com/d3/d3-format/tree/v1.4.5#d3-format 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}\". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax.",
+ "dflt": "",
+ "editType": "none",
+ "valType": "string"
+ }
+ },
"visible": {
"description": "A single toggle to hide the axis while preserving interaction like dragging. Default is true when a cheater plot is present on the axis, otherwise false",
"editType": "plot",
@@ -16697,7 +16793,13 @@
"editType": "none",
"valType": "string"
},
- "role": "object"
+ "role": "object",
+ "showarrow": {
+ "description": "Sets whether or not to show the hover label arrow/triangle pointing to the data point.",
+ "dflt": true,
+ "editType": "none",
+ "valType": "boolean"
+ }
},
"hovertemplate": {
"arrayOk": true,
@@ -18896,7 +18998,13 @@
"editType": "none",
"valType": "string"
},
- "role": "object"
+ "role": "object",
+ "showarrow": {
+ "description": "Sets whether or not to show the hover label arrow/triangle pointing to the data point.",
+ "dflt": true,
+ "editType": "none",
+ "valType": "boolean"
+ }
},
"hovertemplate": {
"arrayOk": true,
@@ -20478,7 +20586,13 @@
"editType": "none",
"valType": "string"
},
- "role": "object"
+ "role": "object",
+ "showarrow": {
+ "description": "Sets whether or not to show the hover label arrow/triangle pointing to the data point.",
+ "dflt": true,
+ "editType": "none",
+ "valType": "boolean"
+ }
},
"hoveron": {
"description": "Do the hover effects highlight individual boxes or sample points or both?",
@@ -22016,6 +22130,12 @@
"valType": "string"
},
"role": "object",
+ "showarrow": {
+ "description": "Sets whether or not to show the hover label arrow/triangle pointing to the data point.",
+ "dflt": true,
+ "editType": "none",
+ "valType": "boolean"
+ },
"split": {
"description": "Show hover information (open, close, high, low) in separate labels.",
"dflt": false,
@@ -25051,7 +25171,13 @@
"editType": "none",
"valType": "string"
},
- "role": "object"
+ "role": "object",
+ "showarrow": {
+ "description": "Sets whether or not to show the hover label arrow/triangle pointing to the data point.",
+ "dflt": true,
+ "editType": "none",
+ "valType": "boolean"
+ }
},
"hovertemplate": {
"arrayOk": true,
@@ -26332,7 +26458,13 @@
"editType": "none",
"valType": "string"
},
- "role": "object"
+ "role": "object",
+ "showarrow": {
+ "description": "Sets whether or not to show the hover label arrow/triangle pointing to the data point.",
+ "dflt": true,
+ "editType": "none",
+ "valType": "boolean"
+ }
},
"hovertemplate": {
"arrayOk": true,
@@ -27609,7 +27741,13 @@
"editType": "none",
"valType": "string"
},
- "role": "object"
+ "role": "object",
+ "showarrow": {
+ "description": "Sets whether or not to show the hover label arrow/triangle pointing to the data point.",
+ "dflt": true,
+ "editType": "none",
+ "valType": "boolean"
+ }
},
"hovertemplate": {
"arrayOk": true,
@@ -28919,7 +29057,13 @@
"editType": "none",
"valType": "string"
},
- "role": "object"
+ "role": "object",
+ "showarrow": {
+ "description": "Sets whether or not to show the hover label arrow/triangle pointing to the data point.",
+ "dflt": true,
+ "editType": "none",
+ "valType": "boolean"
+ }
},
"hovertemplate": {
"arrayOk": true,
@@ -30480,7 +30624,13 @@
"editType": "none",
"valType": "string"
},
- "role": "object"
+ "role": "object",
+ "showarrow": {
+ "description": "Sets whether or not to show the hover label arrow/triangle pointing to the data point.",
+ "dflt": true,
+ "editType": "none",
+ "valType": "boolean"
+ }
},
"hoverongaps": {
"description": "Determines whether or not gaps (i.e. {nan} or missing values) in the `z` data have hover labels associated with them.",
@@ -33303,7 +33453,13 @@
"editType": "none",
"valType": "string"
},
- "role": "object"
+ "role": "object",
+ "showarrow": {
+ "description": "Sets whether or not to show the hover label arrow/triangle pointing to the data point.",
+ "dflt": true,
+ "editType": "none",
+ "valType": "boolean"
+ }
},
"hovertemplate": {
"arrayOk": true,
@@ -34518,7 +34674,13 @@
"editType": "none",
"valType": "string"
},
- "role": "object"
+ "role": "object",
+ "showarrow": {
+ "description": "Sets whether or not to show the hover label arrow/triangle pointing to the data point.",
+ "dflt": true,
+ "editType": "none",
+ "valType": "boolean"
+ }
},
"hovertemplate": {
"arrayOk": true,
@@ -35183,7 +35345,13 @@
"editType": "none",
"valType": "string"
},
- "role": "object"
+ "role": "object",
+ "showarrow": {
+ "description": "Sets whether or not to show the hover label arrow/triangle pointing to the data point.",
+ "dflt": true,
+ "editType": "none",
+ "valType": "boolean"
+ }
},
"hovertemplate": {
"arrayOk": true,
@@ -37211,7 +37379,13 @@
"editType": "none",
"valType": "string"
},
- "role": "object"
+ "role": "object",
+ "showarrow": {
+ "description": "Sets whether or not to show the hover label arrow/triangle pointing to the data point.",
+ "dflt": true,
+ "editType": "none",
+ "valType": "boolean"
+ }
},
"hovertemplate": {
"arrayOk": true,
@@ -39042,7 +39216,13 @@
"editType": "none",
"valType": "string"
},
- "role": "object"
+ "role": "object",
+ "showarrow": {
+ "description": "Sets whether or not to show the hover label arrow/triangle pointing to the data point.",
+ "dflt": true,
+ "editType": "none",
+ "valType": "boolean"
+ }
},
"hoverongaps": {
"description": "Determines whether or not gaps (i.e. {nan} or missing values) in the `z` data have hover labels associated with them.",
@@ -40203,7 +40383,13 @@
"editType": "none",
"valType": "string"
},
- "role": "object"
+ "role": "object",
+ "showarrow": {
+ "description": "Sets whether or not to show the hover label arrow/triangle pointing to the data point.",
+ "dflt": true,
+ "editType": "none",
+ "valType": "boolean"
+ }
},
"hovertemplate": {
"arrayOk": true,
@@ -42844,7 +43030,13 @@
"editType": "none",
"valType": "string"
},
- "role": "object"
+ "role": "object",
+ "showarrow": {
+ "description": "Sets whether or not to show the hover label arrow/triangle pointing to the data point.",
+ "dflt": true,
+ "editType": "none",
+ "valType": "boolean"
+ }
},
"hovertemplate": {
"arrayOk": true,
@@ -44534,7 +44726,13 @@
"editType": "none",
"valType": "string"
},
- "role": "object"
+ "role": "object",
+ "showarrow": {
+ "description": "Sets whether or not to show the hover label arrow/triangle pointing to the data point.",
+ "dflt": true,
+ "editType": "none",
+ "valType": "boolean"
+ }
},
"hovertemplate": {
"arrayOk": true,
@@ -45460,7 +45658,13 @@
"editType": "none",
"valType": "string"
},
- "role": "object"
+ "role": "object",
+ "showarrow": {
+ "description": "Sets whether or not to show the hover label arrow/triangle pointing to the data point.",
+ "dflt": true,
+ "editType": "none",
+ "valType": "boolean"
+ }
},
"hovertemplate": {
"arrayOk": true,
@@ -47546,7 +47750,13 @@
"editType": "none",
"valType": "string"
},
- "role": "object"
+ "role": "object",
+ "showarrow": {
+ "description": "Sets whether or not to show the hover label arrow/triangle pointing to the data point.",
+ "dflt": true,
+ "editType": "none",
+ "valType": "boolean"
+ }
},
"hovertemplate": {
"arrayOk": true,
@@ -50072,7 +50282,13 @@
"editType": "none",
"valType": "string"
},
- "role": "object"
+ "role": "object",
+ "showarrow": {
+ "description": "Sets whether or not to show the hover label arrow/triangle pointing to the data point.",
+ "dflt": true,
+ "editType": "none",
+ "valType": "boolean"
+ }
},
"hovertemplate": {
"arrayOk": true,
@@ -51613,7 +51829,13 @@
"editType": "none",
"valType": "string"
},
- "role": "object"
+ "role": "object",
+ "showarrow": {
+ "description": "Sets whether or not to show the hover label arrow/triangle pointing to the data point.",
+ "dflt": true,
+ "editType": "none",
+ "valType": "boolean"
+ }
},
"hovertemplate": {
"arrayOk": true,
@@ -52441,6 +52663,12 @@
"valType": "string"
},
"role": "object",
+ "showarrow": {
+ "description": "Sets whether or not to show the hover label arrow/triangle pointing to the data point.",
+ "dflt": true,
+ "editType": "none",
+ "valType": "boolean"
+ },
"split": {
"description": "Show hover information (open, close, high, low) in separate labels.",
"dflt": false,
@@ -55896,7 +56124,13 @@
"editType": "none",
"valType": "string"
},
- "role": "object"
+ "role": "object",
+ "showarrow": {
+ "description": "Sets whether or not to show the hover label arrow/triangle pointing to the data point.",
+ "dflt": true,
+ "editType": "none",
+ "valType": "boolean"
+ }
},
"hovertemplate": {
"arrayOk": true,
@@ -57326,7 +57560,13 @@
"editType": "none",
"valType": "string"
},
- "role": "object"
+ "role": "object",
+ "showarrow": {
+ "description": "Sets whether or not to show the hover label arrow/triangle pointing to the data point.",
+ "dflt": true,
+ "editType": "calc",
+ "valType": "boolean"
+ }
},
"ids": {
"description": "Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type.",
@@ -57760,7 +58000,13 @@
"editType": "none",
"valType": "string"
},
- "role": "object"
+ "role": "object",
+ "showarrow": {
+ "description": "Sets whether or not to show the hover label arrow/triangle pointing to the data point.",
+ "dflt": true,
+ "editType": "calc",
+ "valType": "boolean"
+ }
},
"hovertemplate": {
"arrayOk": true,
@@ -58125,7 +58371,13 @@
"editType": "none",
"valType": "string"
},
- "role": "object"
+ "role": "object",
+ "showarrow": {
+ "description": "Sets whether or not to show the hover label arrow/triangle pointing to the data point.",
+ "dflt": true,
+ "editType": "calc",
+ "valType": "boolean"
+ }
},
"hovertemplate": {
"arrayOk": true,
@@ -59000,7 +59252,13 @@
"editType": "none",
"valType": "string"
},
- "role": "object"
+ "role": "object",
+ "showarrow": {
+ "description": "Sets whether or not to show the hover label arrow/triangle pointing to the data point.",
+ "dflt": true,
+ "editType": "none",
+ "valType": "boolean"
+ }
},
"hoveron": {
"description": "Do the hover effects highlight individual points (markers or line points) or do they highlight filled regions? If the fill is *toself* or *tonext* and there are no markers or text, then the default is *fills*, otherwise it is *points*.",
@@ -61738,7 +61996,13 @@
"editType": "none",
"valType": "string"
},
- "role": "object"
+ "role": "object",
+ "showarrow": {
+ "description": "Sets whether or not to show the hover label arrow/triangle pointing to the data point.",
+ "dflt": true,
+ "editType": "none",
+ "valType": "boolean"
+ }
},
"hovertemplate": {
"arrayOk": true,
@@ -64182,7 +64446,13 @@
"editType": "none",
"valType": "string"
},
- "role": "object"
+ "role": "object",
+ "showarrow": {
+ "description": "Sets whether or not to show the hover label arrow/triangle pointing to the data point.",
+ "dflt": true,
+ "editType": "none",
+ "valType": "boolean"
+ }
},
"hoveron": {
"description": "Do the hover effects highlight individual points (markers or line points) or do they highlight filled regions? If the fill is *toself* or *tonext* and there are no markers or text, then the default is *fills*, otherwise it is *points*.",
@@ -66466,7 +66736,13 @@
"editType": "none",
"valType": "string"
},
- "role": "object"
+ "role": "object",
+ "showarrow": {
+ "description": "Sets whether or not to show the hover label arrow/triangle pointing to the data point.",
+ "dflt": true,
+ "editType": "none",
+ "valType": "boolean"
+ }
},
"hovertemplate": {
"arrayOk": true,
@@ -68908,7 +69184,13 @@
"editType": "none",
"valType": "string"
},
- "role": "object"
+ "role": "object",
+ "showarrow": {
+ "description": "Sets whether or not to show the hover label arrow/triangle pointing to the data point.",
+ "dflt": true,
+ "editType": "none",
+ "valType": "boolean"
+ }
},
"hovertemplate": {
"arrayOk": true,
@@ -71231,7 +71513,13 @@
"editType": "none",
"valType": "string"
},
- "role": "object"
+ "role": "object",
+ "showarrow": {
+ "description": "Sets whether or not to show the hover label arrow/triangle pointing to the data point.",
+ "dflt": true,
+ "editType": "none",
+ "valType": "boolean"
+ }
},
"hovertemplate": {
"arrayOk": true,
@@ -72768,7 +73056,13 @@
"editType": "none",
"valType": "string"
},
- "role": "object"
+ "role": "object",
+ "showarrow": {
+ "description": "Sets whether or not to show the hover label arrow/triangle pointing to the data point.",
+ "dflt": true,
+ "editType": "none",
+ "valType": "boolean"
+ }
},
"hovertemplate": {
"arrayOk": true,
@@ -74250,7 +74544,13 @@
"editType": "none",
"valType": "string"
},
- "role": "object"
+ "role": "object",
+ "showarrow": {
+ "description": "Sets whether or not to show the hover label arrow/triangle pointing to the data point.",
+ "dflt": true,
+ "editType": "none",
+ "valType": "boolean"
+ }
},
"hoveron": {
"description": "Do the hover effects highlight individual points (markers or line points) or do they highlight filled regions? If the fill is *toself* or *tonext* and there are no markers or text, then the default is *fills*, otherwise it is *points*.",
@@ -76560,7 +76860,13 @@
"editType": "none",
"valType": "string"
},
- "role": "object"
+ "role": "object",
+ "showarrow": {
+ "description": "Sets whether or not to show the hover label arrow/triangle pointing to the data point.",
+ "dflt": true,
+ "editType": "none",
+ "valType": "boolean"
+ }
},
"hovertemplate": {
"arrayOk": true,
@@ -78704,7 +79010,13 @@
"editType": "none",
"valType": "string"
},
- "role": "object"
+ "role": "object",
+ "showarrow": {
+ "description": "Sets whether or not to show the hover label arrow/triangle pointing to the data point.",
+ "dflt": true,
+ "editType": "none",
+ "valType": "boolean"
+ }
},
"hoveron": {
"description": "Do the hover effects highlight individual points (markers or line points) or do they highlight filled regions? If the fill is *toself* or *tonext* and there are no markers or text, then the default is *fills*, otherwise it is *points*.",
@@ -81013,7 +81325,13 @@
"editType": "none",
"valType": "string"
},
- "role": "object"
+ "role": "object",
+ "showarrow": {
+ "description": "Sets whether or not to show the hover label arrow/triangle pointing to the data point.",
+ "dflt": true,
+ "editType": "none",
+ "valType": "boolean"
+ }
},
"hoveron": {
"description": "Do the hover effects highlight individual points (markers or line points) or do they highlight filled regions? If the fill is *toself* or *tonext* and there are no markers or text, then the default is *fills*, otherwise it is *points*.",
@@ -83323,7 +83641,13 @@
"editType": "none",
"valType": "string"
},
- "role": "object"
+ "role": "object",
+ "showarrow": {
+ "description": "Sets whether or not to show the hover label arrow/triangle pointing to the data point.",
+ "dflt": true,
+ "editType": "none",
+ "valType": "boolean"
+ }
},
"hovertemplate": {
"arrayOk": true,
@@ -85919,7 +86243,13 @@
"editType": "none",
"valType": "string"
},
- "role": "object"
+ "role": "object",
+ "showarrow": {
+ "description": "Sets whether or not to show the hover label arrow/triangle pointing to the data point.",
+ "dflt": true,
+ "editType": "none",
+ "valType": "boolean"
+ }
},
"hovertemplate": {
"arrayOk": true,
@@ -86730,7 +87060,13 @@
"editType": "none",
"valType": "string"
},
- "role": "object"
+ "role": "object",
+ "showarrow": {
+ "description": "Sets whether or not to show the hover label arrow/triangle pointing to the data point.",
+ "dflt": true,
+ "editType": "none",
+ "valType": "boolean"
+ }
},
"hovertemplate": {
"arrayOk": true,
@@ -89529,7 +89865,13 @@
"editType": "none",
"valType": "string"
},
- "role": "object"
+ "role": "object",
+ "showarrow": {
+ "description": "Sets whether or not to show the hover label arrow/triangle pointing to the data point.",
+ "dflt": true,
+ "editType": "none",
+ "valType": "boolean"
+ }
},
"hovertemplate": {
"arrayOk": true,
@@ -90844,7 +91186,13 @@
"editType": "none",
"valType": "string"
},
- "role": "object"
+ "role": "object",
+ "showarrow": {
+ "description": "Sets whether or not to show the hover label arrow/triangle pointing to the data point.",
+ "dflt": true,
+ "editType": "none",
+ "valType": "boolean"
+ }
},
"ids": {
"description": "Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type.",
@@ -91360,7 +91708,13 @@
"editType": "none",
"valType": "string"
},
- "role": "object"
+ "role": "object",
+ "showarrow": {
+ "description": "Sets whether or not to show the hover label arrow/triangle pointing to the data point.",
+ "dflt": true,
+ "editType": "none",
+ "valType": "boolean"
+ }
},
"hovertemplate": {
"arrayOk": true,
@@ -93521,7 +93875,13 @@
"editType": "none",
"valType": "string"
},
- "role": "object"
+ "role": "object",
+ "showarrow": {
+ "description": "Sets whether or not to show the hover label arrow/triangle pointing to the data point.",
+ "dflt": true,
+ "editType": "none",
+ "valType": "boolean"
+ }
},
"hoveron": {
"description": "Do the hover effects highlight individual violins or sample points or the kernel density estimate or any combination of them?",
@@ -95635,7 +95995,13 @@
"editType": "none",
"valType": "string"
},
- "role": "object"
+ "role": "object",
+ "showarrow": {
+ "description": "Sets whether or not to show the hover label arrow/triangle pointing to the data point.",
+ "dflt": true,
+ "editType": "none",
+ "valType": "boolean"
+ }
},
"hovertemplate": {
"arrayOk": true,
@@ -96586,7 +96952,13 @@
"editType": "none",
"valType": "string"
},
- "role": "object"
+ "role": "object",
+ "showarrow": {
+ "description": "Sets whether or not to show the hover label arrow/triangle pointing to the data point.",
+ "dflt": true,
+ "editType": "none",
+ "valType": "boolean"
+ }
},
"hovertemplate": {
"arrayOk": true,
diff --git a/dist/plotly-basic.js b/dist/plotly-basic.js
index b0839af6679..4acb1377ed6 100644
--- a/dist/plotly-basic.js
+++ b/dist/plotly-basic.js
@@ -1,5 +1,5 @@
/**
-* plotly.js (basic) v3.1.0-rc.0
+* plotly.js (basic) v3.1.0-rc.1
* Copyright 2012-2025, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
@@ -38,7 +38,7 @@ var Plotly = (() => {
var require_version = __commonJS({
"src/version.js"(exports) {
"use strict";
- exports.version = "3.1.0-rc.0";
+ exports.version = "3.1.0-rc.1";
}
});
@@ -10331,6 +10331,11 @@ var Plotly = (() => {
dflt: 15,
editType: "none"
},
+ showarrow: {
+ valType: "boolean",
+ dflt: true,
+ editType: "none"
+ },
editType: "none"
},
selectdirection: {
@@ -10364,6 +10369,7 @@ var Plotly = (() => {
}),
align: extendFlat({}, hoverLabelAttrs.align, { arrayOk: true }),
namelength: extendFlat({}, hoverLabelAttrs.namelength, { arrayOk: true }),
+ showarrow: extendFlat({}, hoverLabelAttrs.showarrow),
editType: "none"
}
};
@@ -13149,6 +13155,20 @@ var Plotly = (() => {
var docs = require_docs();
var FORMAT_LINK = docs.FORMAT_LINK;
var DATE_FORMAT_LINK = docs.DATE_FORMAT_LINK;
+ function templateFormatStringDescription(opts) {
+ var supportOther = opts && opts.supportOther;
+ return [
+ "Variables are inserted using %{variable},",
+ 'for example "y: %{y}"' + (supportOther ? " 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}".`,
+ FORMAT_LINK,
+ "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}".`,
+ DATE_FORMAT_LINK,
+ "for details on the date formatting syntax."
+ ].join(" ");
+ }
+ exports.templateFormatStringDescription = templateFormatStringDescription;
function describeVariables(extra) {
var descPart = extra.description ? " " + extra.description : "";
var keys = extra.keys || [];
@@ -15592,6 +15612,8 @@ var Plotly = (() => {
lib.isIOS = function() {
return IS_IOS_REGEX.test(window.navigator.userAgent);
};
+ var IS_MAC_WKWEBVIEW_REGEX = /Macintosh.+AppleWebKit.+Gecko\)$/;
+ lib.isMacWKWebView = () => IS_MAC_WKWEBVIEW_REGEX.test(window.navigator.userAgent);
var FIREFOX_VERSION_REGEX = /Firefox\/(\d+)\.\d+/;
lib.getFirefoxVersion = function() {
var match = FIREFOX_VERSION_REGEX.exec(window.navigator.userAgent);
@@ -16001,9 +16023,12 @@ var Plotly = (() => {
"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-btn": "position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;",
- "X .modebar-btn svg": "position:relative;top:2px;",
+ "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;",
@@ -16444,6 +16469,10 @@ var Plotly = (() => {
ev.emit(event, data);
internalEv.emit(event, data);
};
+ if (typeof plotObj.addEventListener === "function") {
+ plotObj.addEventListener("wheel", () => {
+ });
+ }
return plotObj;
},
/*
@@ -20934,6 +20963,7 @@ var Plotly = (() => {
var dash = require_attributes4().dash;
var extendFlat = require_extend().extendFlat;
var templatedArray = require_plot_template().templatedArray;
+ var templateFormatStringDescription = require_template_attributes().templateFormatStringDescription;
var descriptionWithDates = require_axis_format_attributes().descriptionWithDates;
var ONEDAY = require_numerical().ONEDAY;
var constants = require_constants2();
@@ -21129,6 +21159,13 @@ var Plotly = (() => {
dflt: false,
editType: "calc"
},
+ modebardisable: {
+ valType: "flaglist",
+ flags: ["autoscale", "zoominout"],
+ extras: ["none"],
+ dflt: "none",
+ editType: "modebar"
+ },
insiderange: {
valType: "info_array",
items: [
@@ -21452,6 +21489,14 @@ var Plotly = (() => {
editType: "none",
description: descriptionWithDates("hover text")
},
+ unifiedhovertitle: {
+ text: {
+ valType: "string",
+ dflt: "",
+ editType: "none"
+ },
+ editType: "none"
+ },
// lines and grids
showline: {
valType: "boolean",
@@ -21556,6 +21601,12 @@ var Plotly = (() => {
showgrid,
editType: "ticks"
},
+ minorloglabels: {
+ valType: "enumerated",
+ values: ["small digits", "complete", "none"],
+ dflt: "small digits",
+ editType: "calc"
+ },
layer: {
valType: "enumerated",
values: ["above traces", "below traces"],
@@ -22189,6 +22240,9 @@ var Plotly = (() => {
coerce("separatethousands");
}
}
+ if (!options.noMinorloglabels && axType === "log") {
+ coerce("minorloglabels");
+ }
}
};
function tickformatstopDefaults(valueIn, valueOut) {
@@ -24989,7 +25043,7 @@ var Plotly = (() => {
var editAttr;
if (prop === "title.text") editAttr = "titleText";
else if (prop.indexOf("axis") !== -1) editAttr = "axisTitleText";
- else if (prop.indexOf(true)) editAttr = "colorbarTitleText";
+ else if (prop.indexOf("colorbar") !== -1) editAttr = "colorbarTitleText";
var editable = gd._context.edits[editAttr];
function matchesPlaceholder(text, placeholder2) {
if (text === void 0 || placeholder2 === void 0) return false;
@@ -27731,17 +27785,25 @@ var Plotly = (() => {
}
if (tickformat || dtChar0 === "L") {
out.text = numFormat(Math.pow(10, x), ax, hideexp, extraPrecision);
- } else if (isNumeric(dtick) || dtChar0 === "D" && Lib.mod(x + 0.01, 1) < 0.1) {
- var p = Math.round(x);
+ } else if (isNumeric(dtick) || dtChar0 === "D" && (ax.minorloglabels === "complete" || Lib.mod(x + 0.01, 1) < 0.1)) {
+ var isMinor;
+ if (ax.minorloglabels === "complete" && !(Lib.mod(x + 0.01, 1) < 0.1)) {
+ isMinor = true;
+ out.fontSize *= 0.75;
+ }
+ var exponentialString = Math.pow(10, x).toExponential(0);
+ var parts = exponentialString.split("e");
+ var p = +parts[1];
var absP = Math.abs(p);
var exponentFormat = ax.exponentformat;
if (exponentFormat === "power" || isSIFormat(exponentFormat) && beyondSI(p)) {
- if (p === 0) out.text = 1;
- else if (p === 1) out.text = "10";
- else out.text = "10" + (p > 1 ? "" : MINUS_SIGN) + absP + "";
+ out.text = parts[0];
+ if (absP > 0) out.text += "x10";
+ if (out.text === "1x10") out.text = "10";
+ if (p !== 0 && p !== 1) out.text += "" + (p > 0 ? "" : MINUS_SIGN) + absP + "";
out.fontSize *= 1.25;
} else if ((exponentFormat === "e" || exponentFormat === "E") && absP > 2) {
- out.text = "1" + exponentFormat + (p > 0 ? "+" : MINUS_SIGN) + absP;
+ out.text = parts[0] + exponentFormat + (p > 0 ? "+" : MINUS_SIGN) + absP;
} else {
out.text = numFormat(Math.pow(10, x), ax, "", "fakehover");
if (dtick === "D1" && ax._id.charAt(0) === "y") {
@@ -27749,7 +27811,10 @@ var Plotly = (() => {
}
}
} else if (dtChar0 === "D") {
- out.text = String(Math.round(Math.pow(10, Lib.mod(x, 1))));
+ out.text = ax.minorloglabels === "none" ? "" : (
+ /* ax.minorloglabels === 'small digits' */
+ String(Math.round(Math.pow(10, Lib.mod(x, 1))))
+ );
out.fontSize *= 0.75;
} else throw "unrecognized dtick " + String(dtick);
if (ax.dtick === "D1") {
@@ -28489,11 +28554,13 @@ var Plotly = (() => {
right = -Infinity;
ax._selections[cls].each(function() {
var thisLabel = selectTickLabel(this);
- var bb = Drawing.bBox(thisLabel.node().parentNode);
- top = Math.min(top, bb.top);
- bottom = Math.max(bottom, bb.bottom);
- left = Math.min(left, bb.left);
- right = Math.max(right, bb.right);
+ if (thisLabel.node().style.display !== "none") {
+ var bb = Drawing.bBox(thisLabel.node().parentNode);
+ top = Math.min(top, bb.top);
+ bottom = Math.max(bottom, bb.bottom);
+ left = Math.min(left, bb.left);
+ right = Math.max(right, bb.right);
+ }
});
} else {
var dummyCalc = axes.makeLabelFns(ax, mainLinePositionShift);
@@ -28895,7 +28962,7 @@ var Plotly = (() => {
transform,
"text-anchor": anchor
});
- thisText.style("opacity", 1);
+ thisText.style("display", null);
if (ax._adjustTickLabelsOverflow) {
ax._adjustTickLabelsOverflow();
}
@@ -28938,9 +29005,9 @@ var Plotly = (() => {
}
var t = thisLabel.select("text");
if (adjust) {
- if (hideOverflow) t.style("opacity", 0);
- } else {
- t.style("opacity", 1);
+ if (hideOverflow) t.style("display", "none");
+ } else if (t.node().style.display !== "none") {
+ t.style("display", null);
if (side === "bottom" || side === "right") {
visibleLabelMin = Math.min(visibleLabelMin, isX ? bb.top : bb.left);
} else {
@@ -29000,7 +29067,7 @@ var Plotly = (() => {
var t = d3.select(this);
if (q < ax["_visibleLabelMax_" + anchorAx2._id] && q > ax["_visibleLabelMin_" + anchorAx2._id]) {
t.style("display", "none");
- } else if (e.K === "tick" && !idx) {
+ } else if (e.K === "tick" && !idx && t.node().style.display !== "none") {
t.style("display", null);
}
});
@@ -32972,10 +33039,18 @@ var Plotly = (() => {
if (groupedHoverData.length === 0) return [];
var hoverlabel = fullLayout.hoverlabel;
var font = hoverlabel.font;
+ var item0 = groupedHoverData[0];
+ var unifiedhovertitleText = ((hovermode === "x unified" ? item0.xa : item0.ya).unifiedhovertitle || {}).text;
+ var mainText = !unifiedhovertitleText ? t0 : Lib.hovertemplateString(
+ unifiedhovertitleText,
+ {},
+ fullLayout._d3locale,
+ hovermode === "x unified" ? { xa: item0.xa, x: item0.xVal } : { ya: item0.ya, y: item0.yVal }
+ );
var mockLayoutIn = {
showlegend: true,
legend: {
- title: { text: t0, font },
+ title: { text: mainText, font },
font,
bgcolor: hoverlabel.bgcolor,
bordercolor: hoverlabel.bordercolor,
@@ -33507,13 +33582,16 @@ var Plotly = (() => {
var offsetX = offsets.x;
var offsetY = offsets.y;
var isMiddle = anchor === "middle";
- g.select("path").attr("d", isMiddle ? (
- // middle aligned: rect centered on data
- "M-" + pX(d.bx / 2 + d.tx2width / 2) + "," + pY(offsetY - d.by / 2) + "h" + pX(d.bx) + "v" + pY(d.by) + "h-" + pX(d.bx) + "Z"
- ) : (
- // left or right aligned: side rect with arrow to data
- "M0,0L" + pX(horzSign * HOVERARROWSIZE + offsetX) + "," + pY(HOVERARROWSIZE + offsetY) + "v" + pY(d.by / 2 - HOVERARROWSIZE) + "h" + pX(horzSign * d.bx) + "v-" + pY(d.by) + "H" + pX(horzSign * HOVERARROWSIZE + offsetX) + "V" + pY(offsetY - HOVERARROWSIZE) + "Z"
- ));
+ var showArrow = "hoverlabel" in d.trace ? d.trace.hoverlabel.showarrow : true;
+ var pathStr;
+ if (isMiddle) {
+ pathStr = "M-" + pX(d.bx / 2 + d.tx2width / 2) + "," + pY(offsetY - d.by / 2) + "h" + pX(d.bx) + "v" + pY(d.by) + "h-" + pX(d.bx) + "Z";
+ } else if (showArrow) {
+ pathStr = "M0,0L" + pX(horzSign * HOVERARROWSIZE + offsetX) + "," + pY(HOVERARROWSIZE + offsetY) + "v" + pY(d.by / 2 - HOVERARROWSIZE) + "h" + pX(horzSign * d.bx) + "v-" + pY(d.by) + "H" + pX(horzSign * HOVERARROWSIZE + offsetX) + "V" + pY(offsetY - HOVERARROWSIZE) + "Z";
+ } else {
+ pathStr = "M" + pX(horzSign * HOVERARROWSIZE + offsetX) + "," + pY(offsetY - d.by / 2) + "h" + pX(horzSign * d.bx) + "v" + pY(d.by) + "h" + pX(-horzSign * d.bx) + "Z";
+ }
+ g.select("path").attr("d", pathStr);
var posX = offsetX + shiftX.textShiftX;
var posY = offsetY + d.ty0 - d.by / 2 + HOVERTEXTPAD;
var textAlign = d.textAlign || "auto";
@@ -33881,6 +33959,7 @@ var Plotly = (() => {
coerce("hoverlabel.bgcolor", opts.bgcolor);
coerce("hoverlabel.bordercolor", opts.bordercolor);
coerce("hoverlabel.namelength", opts.namelength);
+ coerce("hoverlabel.showarrow", opts.showarrow);
Lib.coerceFont(coerce, "hoverlabel.font", opts.font);
coerce("hoverlabel.align", opts.align);
};
@@ -34003,6 +34082,7 @@ var Plotly = (() => {
fillFn(trace.hoverlabel.font.variant, cd, "htv");
fillFn(trace.hoverlabel.namelength, cd, "hnl");
fillFn(trace.hoverlabel.align, cd, "hta");
+ fillFn(trace.hoverlabel.showarrow, cd, "htsa");
}
};
function paste(traceAttr, cd, cdAttr, fn) {
@@ -34673,6 +34753,7 @@ var Plotly = (() => {
var require_newshapes = __commonJS({
"src/components/shapes/draw_newshape/newshapes.js"(exports, module) {
"use strict";
+ var axis_ids = require_axis_ids();
var dragHelpers = require_helpers5();
var drawMode = dragHelpers.drawMode;
var openMode = dragHelpers.openMode;
@@ -34739,10 +34820,22 @@ var Plotly = (() => {
case "line":
case "rect":
case "circle":
- modifyItem("x0", afterEdit.x0 - (beforeEdit.x0shift || 0));
- modifyItem("x1", afterEdit.x1 - (beforeEdit.x1shift || 0));
- modifyItem("y0", afterEdit.y0 - (beforeEdit.y0shift || 0));
- modifyItem("y1", afterEdit.y1 - (beforeEdit.y1shift || 0));
+ var xaxis = axis_ids.getFromId(gd, beforeEdit.xref);
+ if (beforeEdit.xref.charAt(0) === "x" && xaxis.type.includes("category")) {
+ modifyItem("x0", afterEdit.x0 - (beforeEdit.x0shift || 0));
+ modifyItem("x1", afterEdit.x1 - (beforeEdit.x1shift || 0));
+ } else {
+ modifyItem("x0", afterEdit.x0);
+ modifyItem("x1", afterEdit.x1);
+ }
+ var yaxis = axis_ids.getFromId(gd, beforeEdit.yref);
+ if (beforeEdit.yref.charAt(0) === "y" && yaxis.type.includes("category")) {
+ modifyItem("y0", afterEdit.y0 - (beforeEdit.y0shift || 0));
+ modifyItem("y1", afterEdit.y1 - (beforeEdit.y1shift || 0));
+ } else {
+ modifyItem("y0", afterEdit.y0);
+ modifyItem("y1", afterEdit.y1);
+ }
break;
case "path":
modifyItem("path", afterEdit.path);
@@ -36558,10 +36651,13 @@ var Plotly = (() => {
var mag = val === "in" ? 0.5 : 2;
var r0 = (1 + mag) / 2;
var r1 = (1 - mag) / 2;
- var axName;
+ var axName, allowed;
for (i = 0; i < axList.length; i++) {
ax = axList[i];
- if (!ax.fixedrange) {
+ allowed = ax.modebardisable === "none" || ax.modebardisable.indexOf(
+ val === "auto" || val === "reset" ? "autoscale" : "zoominout"
+ ) === -1;
+ if (allowed && !ax.fixedrange) {
axName = ax._name;
if (val === "auto") {
aobj[axName + ".autorange"] = true;
@@ -37177,8 +37273,9 @@ var Plotly = (() => {
var fullLayout = this.graphInfo._fullLayout;
var modeBarId = "modebar-" + fullLayout._uid;
this.element.setAttribute("id", modeBarId);
+ this.element.setAttribute("role", "toolbar");
this._uid = modeBarId;
- this.element.className = "modebar";
+ this.element.className = "modebar modebar--custom";
if (context.displayModeBar === "hover") this.element.className += " modebar--hover ease-bg";
if (fullLayout.modebar.orientation === "v") {
this.element.className += " vertical";
@@ -37244,13 +37341,18 @@ var Plotly = (() => {
};
proto.createButton = function(config) {
var _this = this;
- var button = document.createElement("a");
+ var button = document.createElement("button");
+ button.setAttribute("type", "button");
button.setAttribute("rel", "tooltip");
button.className = "modebar-btn";
var title = config.title;
if (title === void 0) title = config.name;
else if (typeof title === "function") title = title(this.graphInfo);
- if (title || title === 0) button.setAttribute("data-title", title);
+ if (title || title === 0) {
+ button.setAttribute("data-title", title);
+ button.setAttribute("aria-label", title);
+ }
+ ;
if (config.attr !== void 0) button.setAttribute("data-attr", config.attr);
var val = config.val;
if (val !== void 0) {
@@ -37605,7 +37707,8 @@ var Plotly = (() => {
function areAllAxesFixed(fullLayout) {
var axList = axisIds.list({ _fullLayout: fullLayout }, null, true);
for (var i = 0; i < axList.length; i++) {
- if (!axList[i].fixedrange) {
+ var disabled = axList[i].modebardisable;
+ if (!axList[i].fixedrange && disabled !== "autoscale+zoominout" && disabled !== "zoominout+autoscale") {
return false;
}
}
@@ -50858,7 +50961,12 @@ var Plotly = (() => {
setConvert(containerOut, layoutOut);
handleRangeDefaults(containerIn, containerOut, coerce, options);
handleCategoryOrderDefaults(containerIn, containerOut, coerce, options);
- if (axType !== "category" && !options.noHover) coerce("hoverformat");
+ if (!options.noHover) {
+ if (axType !== "category") coerce("hoverformat");
+ if (!options.noUnifiedhovertitle) {
+ coerce("unifiedhovertitle.text");
+ }
+ }
var dfltColor = coerce("color");
var dfltFontColor = dfltColor !== layoutAttributes.color.dflt ? dfltColor : font.color;
var dfltTitle = splomStash.label || layoutOut._dfltTitle[letter];
@@ -51369,6 +51477,7 @@ var Plotly = (() => {
grid: layoutOut.grid
});
coerce("fixedrange");
+ coerce("modebardisable");
addMissingMatchedAxis();
axLayoutOut._input = axLayoutIn;
}
@@ -51389,6 +51498,7 @@ var Plotly = (() => {
);
}
coerce("fixedrange");
+ coerce("modebardisable");
}
for (i = 0; i < yNames.length; i++) {
axName = yNames[i];
@@ -51397,6 +51507,7 @@ var Plotly = (() => {
var anchoredAxis = layoutOut[id2name(axLayoutOut.anchor)];
var fixedRangeDflt = getComponentMethod("rangeslider", "isVisible")(anchoredAxis);
coerce("fixedrange", fixedRangeDflt);
+ coerce("modebardisable");
}
constraints.handleDefaults(layoutIn, layoutOut, {
axIds: allAxisIds.concat(missingMatchedAxisIds).sort(axisIds.idSort),
diff --git a/dist/plotly-basic.min.js b/dist/plotly-basic.min.js
index e2c2a17226b..a1e3ec887af 100644
--- a/dist/plotly-basic.min.js
+++ b/dist/plotly-basic.min.js
@@ -1,5 +1,5 @@
/**
-* plotly.js (basic - minified) v3.1.0-rc.0
+* plotly.js (basic - minified) v3.1.0-rc.1
* 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 ib=Object.defineProperty;var jF=Object.getOwnPropertyDescriptor;var eI=Object.getOwnPropertyNames;var rI=Object.prototype.hasOwnProperty;var lb=(e,r)=>()=>(e&&(r=e(e=0)),r);var Z=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var tI=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of eI(r))!rI.call(e,n)&&n!==t&&ib(e,n,{get:()=>r[n],enumerable:!(a=jF(r,n))||a.enumerable});return e};var aI=e=>tI(ib({},"__esModule",{value:!0}),e);var tv=Z(ob=>{"use strict";ob.version="3.1.0-rc.0"});var ub=Z((sb,av)=>{(function(r,t,a){t[r]=t[r]||a(),typeof av!="undefined"&&av.exports&&(av.exports=t[r])})("Promise",typeof window!="undefined"?window:sb,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++],he,_e,te,le=new b,ue;++W<$;)(ue=le.get(he=j(_e=N[W])))?ue.push(_e):le.set(he,[_e]);return E?(_e=E(),te=function(xe,Te){_e.set(xe,L(E,Te,V))}):(_e={},te=function(xe,Te){_e[xe]=L(E,Te,V)}),le.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 K(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)),me.hasOwnProperty(x)?{space:me[x],local:c}:c}},ge.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(we(p,c[p]));return this}return this.each(we(c,p))};function we(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 ye(c){return c.trim().replace(/\s+/g," ")}ge.classed=function(c,p){if(arguments.length<2){if(typeof c=="string"){var x=this.node(),M=(c=Fe(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},ge.sort=function(c){c=Me.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=Ue.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 he=this[j];this.removeEventListener($[1],he,he.$),delete this[j]}}return S?p?N:E:p?G:V}var Ue=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&Ue.forEach(function(c){"on"+c in a&&Ue.remove(c)});function Xe(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=Xe(c,p);return function(M){var S=this,L=M.relatedTarget;(!L||L!==S&&!(L.compareDocumentPosition(S)&8))&&x.call(S,M)}}var He,Ke=0;function cr(c){var p=".dragsuppress-"+ ++Ke,x="click"+p,M=e.select(i(c)).on("touchmove"+p,ie).on("dragstart"+p,ie).on("selectstart"+p,ie);if(He==null&&(He="onselectstart"in c?!1:Y(c.style,"userSelect")),He){var S=n(c).style,L=S[He];S[He]="none"}return function(P){if(M.on(p,null),He&&(S[He]=L),P){var E=function(){M.on(x,null)};M.on(x,function(){ie(),E()},!0),setTimeout(E,0)}}}e.mouse=function(c){return Ne(c,de())};var lr=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Ne(c,p){p.changedTouches&&(p=p.changedTouches[0]);var x=c.ownerSVGElement||c;if(x.createSVGPoint){var M=x.createSVGPoint();if(lr<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();lr=!(L.f||L.e),x.remove()}}return lr?(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=de().changedTouches),p){for(var M=0,S=p.length,L;M0?1:c<0?-1:0}function Vr(c,p,x){return(p[0]-c[0])*(x[1]-c[1])-(p[1]-c[1])*(x[0]-c[0])}function Ct(c){return c>1?0:c<-1?Se:Math.acos(c)}function ea(c){return c>1?ur:c<-1?-ur:Math.asin(c)}function ka(c){return((c=Math.exp(c))-1/c)/2}function ra(c){return((c=Math.exp(c))+1/c)/2}function pn(c){return((c=Math.exp(2*c))-1)/(c+1)}function Ia(c){return(c=Math.sin(c/2))*c}var ta=Math.SQRT2,Ha=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&&(je=je.transition().duration(P)),je.call(Te.event)}function hr(){le&&le.domain(te.range().map(function(je){return(je-c.x)/c.k}).map(te.invert)),xe&&xe.domain(ue.range().map(function(je){return(je-c.y)/c.k}).map(ue.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,Qr=e.select(i(je)).on(V,ca).on(W,La),_t=ce(e.mouse(je)),Ot=cr(je);$c.call(je),dr(Lr);function ca(){qr=1,or(e.mouse(je),_t),Cr(Lr)}function La(){Qr.on(V,null).on(W,null),Ot(qr),pr(Lr)}}function Kr(){var je=this,Lr=_e.of(je,arguments),qr={},Qr=0,_t,Ot=".zoom-"+e.event.changedTouches[0].identifier,ca="touchmove"+Ot,La="touchend"+Ot,Oa=[],qa=e.select(je),Ua=cr(je);Ga(),dr(Lr),qa.on(N,null).on(j,Ga);function ba(){var Yn=e.touches(je);return _t=c.k,Yn.forEach(function(va){va.identifier in qr&&(qr[va.identifier]=ce(va))}),Yn}function Ga(){var Yn=e.event.target;e.select(Yn).on(ca,Jl).on(La,$F),Oa.push(Yn);for(var va=e.event.changedTouches,yn=0,vi=va.length;yn1){var Kl=gn[0],al=gn[1],rv=Kl[0]-al[0],nb=Kl[1]-al[1];Qr=rv*rv+nb*nb}}function Jl(){var Yn=e.touches(je),va,yn,vi,gn;$c.call(je);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 Ca(P(c+120),P(c),P(c-120))}e.hcl=aa;function aa(c,p,x){return this instanceof aa?(this.h=+c,this.c=+p,void(this.l=+x)):arguments.length<2?c instanceof aa?new aa(c.h,c.c,c.l):c instanceof Wt?Dc(c.l,c.a,c.b):Dc((c=nr((c=e.rgb(c)).r,c.g,c.b)).l,c.a,c.b):new aa(c,p,x)}var In=aa.prototype=new Tt;In.brighter=function(c){return new aa(this.h,this.c,Math.min(100,this.l+nt*(arguments.length?c:1)))},In.darker=function(c){return new aa(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 Wt(x,Math.cos(c*=Mr)*p,Math.sin(c)*p)}e.lab=Wt;function Wt(c,p,x){return this instanceof Wt?(this.l=+c,this.a=+p,void(this.b=+x)):arguments.length<2?c instanceof Wt?new Wt(c.l,c.a,c.b):c instanceof aa?Hn(c.h,c.c,c.l):nr((c=Ca(c)).r,c.g,c.b):new Wt(c,p,x)}var nt=18,sa=.95047,Ul=1,Gl=1.08883,rl=Wt.prototype=new Tt;rl.brighter=function(c){return new Wt(Math.min(100,this.l+nt*(arguments.length?c:1)),this.a,this.b)},rl.darker=function(c){return new Wt(Math.max(0,this.l-nt*(arguments.length?c:1)),this.a,this.b)},rl.rgb=function(){return qc(this.l,this.a,this.b)};function qc(c,p,x){var M=(c+16)/116,S=M+p/500,L=M-x/200;return S=ku(S)*sa,M=ku(M)*Ul,L=ku(L)*Gl,new Ca(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 Dc(c,p,x){return c>0?new aa(Math.atan2(x,p)*Ur,Math.sqrt(p*p+x*x),c):new aa(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=Ca;function Ca(c,p,x){return this instanceof Ca?(this.r=~~c,this.g=~~p,void(this.b=~~x)):arguments.length<2?c instanceof Ca?new Ca(c.r,c.g,c.b):Zr(""+c,Ca,Sa):new Ca(c,p,x)}function Ec(c){return new Ca(c>>16,c>>8&255,c&255)}function $o(c){return Ec(c)+""}var jo=Ca.prototype=new Tt;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 Ca(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 jr(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 nr(c,p,x){c=ua(c),p=ua(p),x=ua(x);var M=Su((.4124564*c+.3575761*p+.1804375*x)/sa),S=Su((.2126729*c+.7151522*p+.072175*x)/Ul),L=Su((.0193339*c+.119192*p+.9503041*x)/Gl);return Wt(116*S-16,500*(M-S),200*(S-L))}function ua(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 fa=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});fa.forEach(function(c,p){fa.set(c,Ec(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&&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 he in P)E.setRequestHeader(he,P[he]);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(V,W,$){arguments.length<3&&($=W,W=null);var j=Vl(V,p,W==null?L:P(W),$);return j.row=function(he){return arguments.length?j.response((W=he)==null?L:P(he)):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,he){if($)return $(j,he-1);var _e=function(te){for(var le={},ue=j.length,xe=0;xe=_e)return j;if(xe)return xe=!1,$;var Ve=te;if(V.charCodeAt(Ve)===34){for(var rr=Ve;rr++<_e;)if(V.charCodeAt(rr)===34){if(V.charCodeAt(rr+1)!==34)break;++rr}te=rr+2;var or=V.charCodeAt(rr+1);return or===13?(xe=!0,V.charCodeAt(rr+2)===10&&++te):or===10&&(xe=!0),V.slice(Ve+1,rr).replace(/""/g,'"')}for(;te<_e;){var or=V.charCodeAt(te++),ar=1;if(or===10)xe=!0;else if(or===13)xe=!0,V.charCodeAt(te)===10&&(++te,++ar);else if(or!==M)continue;return V.slice(Ve,te-ar)}return V.slice(Ve)}for(;(ue=Te())!==j;){for(var ce=[];ue!==$&&ue!==j;)ce.push(ue),ue=Te();W&&(ce=W(ce,le++))==null||he.push(ce)}return he},S.format=function(V){if(Array.isArray(V[0]))return S.formatRows(V);var W=new O,$=[];return V.forEach(function(j){for(var he in j)W.has(he)||$.push(W.add(he))}),[$.map(N).join(c)].concat(V.map(function(j){return $.map(function(he){return N(j[he])}).join(c)})).join(`
+"use strict";var Plotly=(()=>{var ib=Object.defineProperty;var eI=Object.getOwnPropertyDescriptor;var rI=Object.getOwnPropertyNames;var tI=Object.prototype.hasOwnProperty;var lb=(e,r)=>()=>(e&&(r=e(e=0)),r);var Z=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var aI=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of rI(r))!tI.call(e,n)&&n!==t&&ib(e,n,{get:()=>r[n],enumerable:!(a=eI(r,n))||a.enumerable});return e};var nI=e=>aI(ib({},"__esModule",{value:!0}),e);var iv=Z(ob=>{"use strict";ob.version="3.1.0-rc.1"});var ub=Z((sb,lv)=>{(function(r,t,a){t[r]=t[r]||a(),typeof lv!="undefined"&&lv.exports&&(lv.exports=t[r])})("Promise",typeof window!="undefined"?window:sb,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++],pe,_e,te,oe=new b,ce;++W<$;)(ce=oe.get(pe=j(_e=N[W])))?ce.push(_e):oe.set(pe,[_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 K(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)),ge.hasOwnProperty(x)?{space:ge[x],local:c}:c}},Ae.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 ye(c){return c.trim().replace(/\s+/g," ")}Ae.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},Ae.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 pe=this[j];this.removeEventListener($[1],pe,pe.$),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,he())};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=he().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=de(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]=de(pa))}),Yn}function Va(){var Yn=e.event.target;e.select(Yn).on(da,Jl).on(Da,jF),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&&rN(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 pe in P)E.setRequestHeader(pe,P[pe]);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(eN(M))}function eN(c){return c.length===1?function(p,x){c(p==null?x:null)}:c}function rN(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(pe){return arguments.length?j.response((W=pe)==null?L:P(pe)):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,pe){if($)return $(j,pe-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 de=[];ce!==$&&ce!==j;)de.push(ce),ce=we();W&&(de=W(de,oe++))==null||pe.push(de)}return pe},S.format=function(V){if(Array.isArray(V[0]))return S.formatRows(V);var W=new O,$=[];return V.forEach(function(j){for(var pe in j)W.has(pe)||$.push(W.add(pe))}),[$.map(N).join(c)].concat(V.map(function(j){return $.map(function(pe){return N(j[pe])}).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 Pc,Rc,zc,Nc,G3=this[Y(this,"requestAnimationFrame")]||function(c){setTimeout(c,17)};e.timer=function(){Fc.apply(this,arguments)};function Fc(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 Rc?Rc.n=L:Pc=L,Rc=L,zc||(Nc=clearTimeout(Nc),zc=1,G3(v1)),L}function v1(){var c=V3(),p=W3()-c;p>24?(isFinite(p)&&(clearTimeout(Nc),Nc=setTimeout(v1,p)),zc=0):(zc=1,G3(v1))}e.timer.flush=function(){V3(),W3()};function V3(){for(var c=Date.now(),p=Pc;p;)c>=p.t&&p.c(c-p.t)&&(p.c=null),p=p.n;return c}function W3(){for(var c,p=Pc,x=1/0;p;)p.c?(p.t=0;--E)te.push(S[V[$[E]][2]]);for(E=+he;E1&&Vr(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 ee(c,Ic),c};var Ic=e.geom.polygon.prototype=[];Ic.area=function(){for(var c=-1,p=this.length,x,M=this[p-1],S=0;++coe)E=E.L;else if(P=p-iN(E,x),P>oe){if(!E.R){M=E;break}E=E.R}else{L>-oe?(M=E.P,S=E):P>-oe?(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,he=c.y-$,_e=S.site,te=_e.x-W,le=_e.y-$,ue=2*(j*le-he*te),xe=j*j+he*he,Te=te*te+le*le,ce={x:(le*xe-he*Te)/ue+W,y:(j*Te-te*xe)/ue+$};Hc(S.edge,V,_e,ce),N.edge=Du(V,c,null,ce),S.edge=Du(c,_e,null,ce),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 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,V=Wl,W=V.length,$,j,he,_e,te,le;W--;)if($=V[W],!(!$||!$.prepare()))for(he=$.edges,_e=he.length,j=0;j<_e;)le=he[j].end(),E=le.x,N=le.y,te=he[++j%_e].start(),L=te.x,P=te.y,(_(E-L)>oe||_(N-P)>oe)&&(he.splice(j,0,new Oc(cN($.site,le,_(E-p)oe?{x:p,y:_(L-p)oe?{x:_(P-S)oe?{x,y:_(L-x)oe?{x:_(P-M)=-qe)){var j=N*N+V*V,he=W*W+le*le,_e=(le*j-V*he)/$,te=(N*he-W*j)/$,le=te+E,ue=K3.pop()||new oN;ue.arc=c,ue.site=S,ue.x=_e+P,ue.y=le+Math.sqrt(_e*_e+te*te),ue.cy=le,c.circle=ue;for(var xe=null,Te=qu._;Te;)if(ue.y0)){if(te/=he,he<0){if(te<$)return;te0){if(te>j)return;te>$&&($=te)}if(te=x-E,!(!he&&te<0)){if(te/=he,he<0){if(te>j)return;te>$&&($=te)}else if(he>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+$*he,y:N+$*_e}),j<1&&(S.b={x:E+j*he,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-ue)/le,y:P};else if(M.y>=E)return;x={x:(E-ue)/le,y:E}}else{if(!M)M={x:(E-ue)/le,y:E};else if(M.y
=L)return;x={x:L,y:le*L+ue}}else{if(!M)M={x:L,y:le*L+ue};else if(M.x=W&&ue.x<=j&&ue.y>=$&&ue.y<=he?[[W,he],[j,he],[j,$],[W,$]]:[];xe.point=N[te]}),V}function E(N){return N.map(function(V,W){return{x:Math.round(M(V,W)/oe)*oe,y:Math.round(S(V,W)/oe)*oe,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,he=W.edges.sort(e5),_e=-1,te=he.length,le,ue,xe=he[te-1].edge,Te=xe.l===j?xe.r:xe.l;++_eTe&&(Te=W.x),W.y>ce&&(ce=W.y),he.push(W.x),_e.push(W.y);else for(te=0;teTe&&(Te=Ve),rr>ce&&(ce=rr),he.push(Ve),_e.push(rr)}var or=Te-ue,ar=ce-xe;or>ar?ce=xe+or:Te=ue+ar;function hr(pr,Tr,Kr,Lt,rt,je,Lr,qr){if(!(isNaN(Kr)||isNaN(Lt)))if(pr.leaf){var Qr=pr.x,_t=pr.y;if(Qr!=null)if(_(Qr-Kr)+_(_t-Lt)<.01)dr(pr,Tr,Kr,Lt,rt,je,Lr,qr);else{var Ot=pr.point;pr.x=pr.y=pr.point=null,dr(pr,Ot,Qr,_t,rt,je,Lr,qr),dr(pr,Tr,Kr,Lt,rt,je,Lr,qr)}else pr.x=Kr,pr.y=Lt,pr.point=Tr}else dr(pr,Tr,Kr,Lt,rt,je,Lr,qr)}function dr(pr,Tr,Kr,Lt,rt,je,Lr,qr){var Qr=(rt+Lr)*.5,_t=(je+qr)*.5,Ot=Kr>=Qr,ca=Lt>=_t,La=ca<<1|Ot;pr.leaf=!1,pr=pr.nodes[La]||(pr.nodes[La]=a5()),Ot?rt=Qr:Lr=Qr,ca?je=_t:qr=_t,hr(pr,Tr,Kr,Lt,rt,je,Lr,qr)}var Cr=a5();if(Cr.add=function(pr){hr(Cr,pr,+$(pr,++te),+j(pr,te),ue,xe,Te,ce)},Cr.visit=function(pr){Ru(pr,Cr,ue,xe,Te,ce)},Cr.find=function(pr){return mN(Cr,pr[0],pr[1],ue,xe,Te,ce)},te=-1,p==null){for(;++teL||j>P||he=Ve,ar=x>=rr,hr=ar<<1|or,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:Ri(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"?fa.has(p.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(p)?b1:i5:p instanceof Tt?b1:Array.isArray(p)?Uc:x==="object"&&isNaN(p)?n5:Ri)(c,p)}],e.interpolateArray=Uc;function Uc(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)||X,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*ur)}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/ir*Math.asin(1/c):(c=1,x=p/4),function(M){return 1+c*Math.pow(2,-10*M)*Math.sin((M-x)*ir/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 Hn(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 Sa(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 qc(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:Ri(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:Ri(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:Ri(c[0],p[0])},{i:S-2,x:Ri(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=ce:(x.c=null,x.t=NaN,x=null,p.end({type:"end",alpha:L=0})):ce>0&&(p.start({type:"start",alpha:L=ce}),x=Fc(c.tick)),c):L},c.start=function(){var ce,Ve=he.length,rr=_e.length,or=M[0],ar=M[1],hr,dr;for(ce=0;ce=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,he;c&&(j=$.children)&&j.sort(c),x&&(he=$.parent)&&(he.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=jN,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 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),V=x.call(this,N,j),W=M.call(this,V,N,j),$,j=-1,he=N.length,_e=W.length-1,te=c?1:1/he,le;++j<_e;)$=E[j]=[],$.dx=W[j+1]-($.x=W[j]),$.y=0;if(_e>0)for(j=-1;++j=V[0]&&le<=V[1]&&($=E[e.bisect(W,le,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],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(he){he.r=+$(he.value)}),ci(N,x5),p){var j=p*(M?1:Math.max(2*N.r/V,2*N.r/W))/2;ci(N,function(he){he.r+=j}),ci(N,x5),ci(N,function(he){he.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 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,V,W,$,j;function he(ce){x=Math.min(ce.x-ce.r,x),M=Math.max(ce.x+ce.r,M),S=Math.min(ce.y-ce.r,S),L=Math.max(ce.y+ce.r,L)}if(p.forEach(cF),P=p[0],P.x=-P.r,P.y=0,he(P),j>1&&(E=p[1],E.x=E.r,E.y=0,he(E),j>2))for(N=p[2],w5(P,E,N),he(N),M1(P,N),P._pack_prev=N,M1(N,E),E=P._pack_next,V=3;Vle.x&&(le=Ve),Ve.depth>ue.depth&&(ue=Ve)});var xe=p(te,le)/2-te.x,Te=x[0]/(le.x+p(le,te)/2+xe),ce=x[1]/(ue.depth||1);Nu(he,function(Ve){Ve.x=(Ve.x+xe)*Te,Ve.y=Ve.depth*ce})}return j}function L(W){for(var $={A:null,children:[W]},j=[$],he;(he=j.pop())!=null;)for(var _e=he.children,te,le=0,ue=_e.length;le0&&(hF(pF(te,W,j),W,Ve),ue+=Ve,xe+=Ve),Te+=te.m,ue+=he.m,ce+=le.m,xe+=_e.m;te&&!k1(_e)&&(_e.t=te,_e.m+=Te-xe),he&&!A1(le)&&(le.t=he,le.m+=ue-ce,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 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],V,W=0;ci(N,function(te){var le=te.children;le&&le.length?(te.x=yF(le),te.y=mF(le)):(te.x=V?W+=p(te,V):0,te.y=0,V=te)});var $=M5(N),j=A5(N),he=$.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-he)/(_e-he)*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 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 V(te,le){for(var ue=-1,xe=te.length,Te,ce;++ue0;)xe.push(ce=Te[ar-1]),xe.area+=ce.area,E!=="squarify"||(rr=j(xe,or))<=Ve?(Te.pop(),Ve=rr):(xe.area-=xe.pop().area,he(xe,or,ue,!1),or=Math.min(ue.dx,ue.dy),xe.length=xe.area=0,Ve=1/0);xe.length&&(he(xe,or,ue,!0),xe.length=xe.area=0),le.forEach(W)}}function $(te){var le=te.children;if(le&&le.length){var ue=S(te),xe=le.slice(),Te,ce=[];for(V(xe,ue.dx*ue.dy/te.value),ce.area=0;Te=xe.pop();)ce.push(Te),ce.area+=Te.area,Te.z!=null&&(he(ce,Te.z?ue.dx:ue.dy,ue,!xe.length),ce.length=ce.area=0);le.forEach($)}}function j(te,le){for(var ue=te.area,xe,Te=0,ce=1/0,Ve=-1,rr=te.length;++VeTe&&(Te=xe));return ue*=ue,le*=le,ue?Math.max(le*Te*N/ue,ue/(le*ce*N)):1/0}function he(te,le,ue,xe){var Te=-1,ce=te.length,Ve=ue.x,rr=ue.y,or=le?p(te.area/le):0,ar;if(le==ue.dx){for((xe||or>ue.dy)&&(or=ue.dy);++Teue.dx)&&(or=ue.dx);++Te1);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,V=M?ON:HN;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=Gc(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 nie(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=Gc(M),N=[],V=E[0],W=E[1],$=Math.floor(S(V)),j=Math.ceil(S(W)),he=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=Wc(p),S=Wc(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=Wc(p=P),S=Wc(1/p),c.domain(x.map(M)),L):p},L.copy=function(){return P5(c.copy(),p,x)},L5(L,c)}function Wc(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=vr)return N(W,_e)+(V?N(V,1-_e):"")+"Z";var te,le,ue,xe,Te=0,ce=0,Ve,rr,or,ar,hr,dr,Cr,pr,Tr=[];if((xe=(+P.apply(this,arguments)||0)/2)&&(ue=M===Zc?Math.sqrt(V*V+W*W):+M.apply(this,arguments),_e||(ce*=-1),W&&(ce=ea(ue/W*Math.sin(xe))),V&&(Te=ea(ue/V*Math.sin(xe)))),W){Ve=W*Math.cos($+ce),rr=W*Math.sin($+ce),or=W*Math.cos(j-ce),ar=W*Math.sin(j-ce);var Kr=Math.abs(j-$-2*ce)<=Se?0:1;if(ce&&Xc(Ve,rr,or,ar)===_e^Kr){var Lt=($+j)/2;Ve=W*Math.cos(Lt),rr=W*Math.sin(Lt),or=ar=null}}else Ve=rr=0;if(V){hr=V*Math.cos(j-Te),dr=V*Math.sin(j-Te),Cr=V*Math.cos($+Te),pr=V*Math.sin($+Te);var rt=Math.abs($-j+2*Te)<=Se?0:1;if(Te&&Xc(hr,dr,Cr,pr)===1-_e^rt){var je=($+j)/2;hr=V*Math.cos(je),dr=V*Math.sin(je),Cr=pr=null}}else hr=dr=0;if(he>oe&&(te=Math.min(Math.abs(W-V)/2,+x.apply(this,arguments)))>.001){le=V0?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,V=-E*L,W=c[0]+N,$=c[1]+V,j=p[0]+N,he=p[1]+V,_e=(W+j)/2,te=($+he)/2,le=j-W,ue=he-$,xe=le*le+ue*ue,Te=x-M,ce=W*he-j*$,Ve=(ue<0?-1:1)*Math.sqrt(Math.max(0,Te*Te*xe-ce*ce)),rr=(ce*ue-le*Ve)/xe,or=(-ce*le-ue*Ve)/xe,ar=(ce*ue+le*Ve)/xe,hr=(-ce*le+ue*Ve)/xe,dr=rr-_e,Cr=or-te,pr=ar-_e,Tr=hr-te;return dr*dr+Cr*Cr>pr*pr+Tr*Tr&&(rr=ar,or=hr),[[rr-N,or-V],[rr*x/Te,or*x/Te]]}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,he,_e=Rr(p),te=Rr(x);function le(){V.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 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 OF(c){return c.length<3?Bn(c):c[0]+Kc(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;++xSe)+",1 "+$}function V(W,$,j,he){return"Q 0,0 "+he}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,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(YF(p=M)):p},c};function YF(c){return function(){var p=c.apply(this,arguments),x=p[0],M=p[1]-ur;return[x*Math.cos(M),x*Math.sin(M)]}}e.svg.symbol=function(){var c=GF,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 GF(){return"circle"}function $5(c){var p=Math.sqrt(c/Se);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/Qc),x=p*Qc/2;return"M0,"+x+"L"+p+","+-x+" "+-p+","+-x+"Z"},"triangle-up":function(c){var p=Math.sqrt(c/Qc),x=p*Qc/2;return"M0,"+-x+"L"+p+","+x+" "+-p+","+x+"Z"}});e.svg.symbolTypes=j5.keys();var Qc=Math.sqrt(3),eb=Math.tan(30*Mr);ge.transition=function(c){for(var p=Xl||++tb,x=I1(c),M=[],S,L,P=jc||{time:Date.now(),ease:wN,delay:0,duration:250},E=-1,N=this.length;++E0;)$[--xe].call(c,ue);if(le>=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=Fc(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(),he=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(he,j),le=te.enter().insert("g",".domain").attr("class","tick").style("opacity",oe),ue=e.transition(te.exit()).style("opacity",oe).remove(),xe=e.transition(te.order()).style("opacity",1),Te=Math.max(x,0)+S,ce,Ve=Vc(j),rr=W.selectAll(".domain").data([0]),or=(rr.enter().append("path").attr("class","domain"),e.transition(rr));le.append("line"),le.append("text");var ar=le.select("line"),hr=xe.select("line"),dr=te.select("text").text(_e),Cr=le.select("text"),pr=xe.select("text"),Tr=p==="top"||p==="left"?-1:1,Kr,Lt,rt,je;if(p==="bottom"||p==="top"?(ce=ZF,Kr="x",rt="y",Lt="x2",je="y2",dr.attr("dy",Tr<0?"0em":".71em").style("text-anchor","middle"),or.attr("d","M"+Ve[0]+","+Tr*M+"V0H"+Ve[1]+"V"+Tr*M)):(ce=XF,Kr="y",rt="x",Lt="y2",je="x2",dr.attr("dy",".32em").style("text-anchor",Tr<0?"end":"start"),or.attr("d","M"+Tr*M+","+Ve[0]+"H0V"+Ve[1]+"H"+Tr*M)),ar.attr(je,Tr*x),Cr.attr(rt,Tr*Te),hr.attr(Lt,0).attr(je,Tr*x),pr.attr(Kr,0).attr(rt,Tr*Te),j.rangeBand){var Lr=j,qr=Lr.rangeBand()/2;$=j=function(Qr){return Lr(Qr)+qr}}else $.rangeBand?$=j:ue.call(ce,j,$);le.call(ce,$,j),xe.call(ce,j,j)})}return N.scale=function(V){return arguments.length?(c=V,N):c},N.orient=function(V){return arguments.length?(p=V in WF?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",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=pe(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 le=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),ue=le.selectAll(".background").data([0]);ue.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),le.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var xe=le.selectAll(".resize").data(V,X);xe.exit().remove(),xe.enter().append("g").attr("class",function(rr){return"resize "+rr}).style("cursor",function(rr){return JF[rr]}).append("rect").attr("x",function(rr){return/[ew]$/.test(rr)?-3:null}).attr("y",function(rr){return/^[ns]/.test(rr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),xe.style("display",W.empty()?"none":null);var Te=e.transition(le),ce=e.transition(ue),Ve;p&&(Ve=Vc(p),ce.attr("x",Ve[0]).attr("width",Ve[1]-Ve[0]),j(Te)),x&&(Ve=Vc(x),ce.attr("y",Ve[0]).attr("height",Ve[1]-Ve[0]),he(Te)),$(Te)})}W.event=function(te){te.each(function(){var le=c.of(this,arguments),ue={x:M,y:S,i:L,j:P},xe=this.__chart__||ue;this.__chart__=ue,Xl?e.select(this).transition().each("start.brush",function(){L=xe.i,P=xe.j,M=xe.x,S=xe.y,le({type:"brushstart"})}).tween("brush:brush",function(){var Te=Uc(M,ue.x),ce=Uc(S,ue.y);return L=P=null,function(Ve){M=ue.x=Te(Ve),S=ue.y=ce(Ve),le({type:"brush",mode:"resize"})}}).each("end.brush",function(){L=ue.i,P=ue.j,le({type:"brush",mode:"resize"}),le({type:"brushend"})}):(le({type:"brushstart"}),le({type:"brush",mode:"resize"}),le({type:"brushend"}))})};function $(te){te.selectAll(".resize").attr("transform",function(le){return"translate("+M[+/e$/.test(le)]+","+S[+/^s/.test(le)]+")"})}function j(te){te.select(".extent").attr("x",M[0]),te.selectAll(".extent,.n>rect,.s>rect").attr("width",M[1]-M[0])}function he(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,le=e.select(e.event.target),ue=c.of(te,arguments),xe=e.select(te),Te=le.datum(),ce=!/^(n|s)$/.test(Te)&&p,Ve=!/^(e|w)$/.test(Te)&&x,rr=le.classed("extent"),or=cr(te),ar,hr=e.mouse(te),dr,Cr=e.select(i(te)).on("keydown.brush",Kr).on("keyup.brush",Lt);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(),rr)hr[0]=M[0]-hr[0],hr[1]=S[0]-hr[1];else if(Te){var pr=+/w$/.test(Te),Tr=+/^n/.test(Te);dr=[M[1-pr]-hr[0],S[1-Tr]-hr[1]],hr[0]=M[pr],hr[1]=S[Tr]}else e.event.altKey&&(ar=hr.slice());xe.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",le.style("cursor")),ue({type:"brushstart"}),rt();function Kr(){e.event.keyCode==32&&(rr||(ar=null,hr[0]-=M[1],hr[1]-=S[1],rr=2),ie())}function Lt(){e.event.keyCode==32&&rr==2&&(hr[0]+=M[1],hr[1]+=S[1],rr=0,ie())}function rt(){var qr=e.mouse(te),Qr=!1;dr&&(qr[0]+=dr[0],qr[1]+=dr[1]),rr||(e.event.altKey?(ar||(ar=[(M[0]+M[1])/2,(S[0]+S[1])/2]),hr[0]=M[+(qr[0]{(function(e,r){typeof iv=="object"&&typeof fb!="undefined"?r(iv):(e=e||self,r(e.d3=e.d3||{}))})(iv,function(e){"use strict";var r=new Date,t=new Date;function a(ne,Me,Ce,sr){function tr(De){return ne(De=arguments.length===0?new Date:new Date(+De)),De}return tr.floor=function(De){return ne(De=new Date(+De)),De},tr.ceil=function(De){return ne(De=new Date(De-1)),Me(De,1),ne(De),De},tr.round=function(De){var Le=tr(De),Ue=tr.ceil(De);return De-Le0))return Xe;do Xe.push(Ge=new Date(+De)),Me(De,Ue),ne(De);while(Ge=Le)for(;ne(Le),!De(Le);)Le.setTime(Le-1)},function(Le,Ue){if(Le>=Le)if(Ue<0)for(;++Ue<=0;)for(;Me(Le,-1),!De(Le););else for(;--Ue>=0;)for(;Me(Le,1),!De(Le););})},Ce&&(tr.count=function(De,Le){return r.setTime(+De),t.setTime(+Le),ne(r),ne(t),Math.floor(Ce(r,t))},tr.every=function(De){return De=Math.floor(De),!isFinite(De)||!(De>0)?null:De>1?tr.filter(sr?function(Le){return sr(Le)%De===0}:function(Le){return tr.count(0,Le)%De===0}):tr}),tr}var n=a(function(){},function(ne,Me){ne.setTime(+ne+Me)},function(ne,Me){return Me-ne});n.every=function(ne){return ne=Math.floor(ne),!isFinite(ne)||!(ne>0)?null:ne>1?a(function(Me){Me.setTime(Math.floor(Me/ne)*ne)},function(Me,Ce){Me.setTime(+Me+Ce*ne)},function(Me,Ce){return(Ce-Me)/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,Me){ne.setTime(+ne+Me*l)},function(ne,Me){return(Me-ne)/l},function(ne){return ne.getUTCSeconds()}),h=v.range,d=a(function(ne){ne.setTime(ne-ne.getMilliseconds()-ne.getSeconds()*l)},function(ne,Me){ne.setTime(+ne+Me*o)},function(ne,Me){return(Me-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,Me){ne.setTime(+ne+Me*s)},function(ne,Me){return(Me-ne)/s},function(ne){return ne.getHours()}),y=g.range,_=a(function(ne){ne.setHours(0,0,0,0)},function(ne,Me){ne.setDate(ne.getDate()+Me)},function(ne,Me){return(Me-ne-(Me.getTimezoneOffset()-ne.getTimezoneOffset())*o)/u},function(ne){return ne.getDate()-1}),w=_.range;function T(ne){return a(function(Me){Me.setDate(Me.getDate()-(Me.getDay()+7-ne)%7),Me.setHours(0,0,0,0)},function(Me,Ce){Me.setDate(Me.getDate()+Ce*7)},function(Me,Ce){return(Ce-Me-(Ce.getTimezoneOffset()-Me.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,Y=R.range,H=a(function(ne){ne.setDate(1),ne.setHours(0,0,0,0)},function(ne,Me){ne.setMonth(ne.getMonth()+Me)},function(ne,Me){return Me.getMonth()-ne.getMonth()+(Me.getFullYear()-ne.getFullYear())*12},function(ne){return ne.getMonth()}),G=H.range,Q=a(function(ne){ne.setMonth(0,1),ne.setHours(0,0,0,0)},function(ne,Me){ne.setFullYear(ne.getFullYear()+Me)},function(ne,Me){return Me.getFullYear()-ne.getFullYear()},function(ne){return ne.getFullYear()});Q.every=function(ne){return!isFinite(ne=Math.floor(ne))||!(ne>0)?null:a(function(Me){Me.setFullYear(Math.floor(Me.getFullYear()/ne)*ne),Me.setMonth(0,1),Me.setHours(0,0,0,0)},function(Me,Ce){Me.setFullYear(Me.getFullYear()+Ce*ne)})};var K=Q.range,ie=a(function(ne){ne.setUTCSeconds(0,0)},function(ne,Me){ne.setTime(+ne+Me*o)},function(ne,Me){return(Me-ne)/o},function(ne){return ne.getUTCMinutes()}),de=ie.range,pe=a(function(ne){ne.setUTCMinutes(0,0,0)},function(ne,Me){ne.setTime(+ne+Me*s)},function(ne,Me){return(Me-ne)/s},function(ne){return ne.getUTCHours()}),Ae=pe.range,ee=a(function(ne){ne.setUTCHours(0,0,0,0)},function(ne,Me){ne.setUTCDate(ne.getUTCDate()+Me)},function(ne,Me){return(Me-ne)/u},function(ne){return ne.getUTCDate()-1}),ke=ee.range;function ve(ne){return a(function(Me){Me.setUTCDate(Me.getUTCDate()-(Me.getUTCDay()+7-ne)%7),Me.setUTCHours(0,0,0,0)},function(Me,Ce){Me.setUTCDate(Me.getUTCDate()+Ce*7)},function(Me,Ce){return(Ce-Me)/f})}var be=ve(0),se=ve(1),ge=ve(2),B=ve(3),re=ve(4),U=ve(5),me=ve(6),we=be.range,ye=se.range,Re=ge.range,Fe=B.range,Ee=re.range,ze=U.range,Ye=me.range,Ze=a(function(ne){ne.setUTCDate(1),ne.setUTCHours(0,0,0,0)},function(ne,Me){ne.setUTCMonth(ne.getUTCMonth()+Me)},function(ne,Me){return Me.getUTCMonth()-ne.getUTCMonth()+(Me.getUTCFullYear()-ne.getUTCFullYear())*12},function(ne){return ne.getUTCMonth()}),Pe=Ze.range,Be=a(function(ne){ne.setUTCMonth(0,1),ne.setUTCHours(0,0,0,0)},function(ne,Me){ne.setUTCFullYear(ne.getUTCFullYear()+Me)},function(ne,Me){return Me.getUTCFullYear()-ne.getUTCFullYear()},function(ne){return ne.getUTCFullYear()});Be.every=function(ne){return!isFinite(ne=Math.floor(ne))||!(ne>0)?null:a(function(Me){Me.setUTCFullYear(Math.floor(Me.getUTCFullYear()/ne)*ne),Me.setUTCMonth(0,1),Me.setUTCHours(0,0,0,0)},function(Me,Ce){Me.setUTCFullYear(Me.getUTCFullYear()+Ce*ne)})};var Oe=Be.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=Y,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=Q,e.timeYears=K,e.utcDay=ee,e.utcDays=ke,e.utcFriday=U,e.utcFridays=ze,e.utcHour=pe,e.utcHours=Ae,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=ie,e.utcMinutes=de,e.utcMonday=se,e.utcMondays=ye,e.utcMonth=Ze,e.utcMonths=Pe,e.utcSaturday=me,e.utcSaturdays=Ye,e.utcSecond=v,e.utcSeconds=h,e.utcSunday=be,e.utcSundays=we,e.utcThursday=re,e.utcThursdays=Ee,e.utcTuesday=ge,e.utcTuesdays=Re,e.utcWednesday=B,e.utcWednesdays=Fe,e.utcWeek=be,e.utcWeeks=we,e.utcYear=Be,e.utcYears=Oe,Object.defineProperty(e,"__esModule",{value:!0})})});var os=Z((lv,cb)=>{(function(e,r){typeof lv=="object"&&typeof cb!="undefined"?r(lv,O1()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(lv,function(e,r){"use strict";function t(ae){if(0<=ae.y&&ae.y<100){var oe=new Date(-1,ae.m,ae.d,ae.H,ae.M,ae.S,ae.L);return oe.setFullYear(ae.y),oe}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 oe=new Date(Date.UTC(-1,ae.m,ae.d,ae.H,ae.M,ae.S,ae.L));return oe.setUTCFullYear(ae.y),oe}return new Date(Date.UTC(ae.y,ae.m,ae.d,ae.H,ae.M,ae.S,ae.L))}function n(ae,oe,qe){return{y:ae,m:oe,d:qe,H:0,M:0,S:0,L:0}}function i(ae){var oe=ae.dateTime,qe=ae.date,Se=ae.time,ir=ae.periods,vr=ae.days,ur=ae.shortDays,Mr=ae.months,Ur=ae.shortMonths,$r=h(ir),Vr=d(ir),Ct=h(vr),ea=d(vr),ka=h(ur),ra=d(ur),pn=h(Mr),Ia=d(Mr),ta=h(Ur),Ha=d(Ur),yr={a:Ul,A:Gl,b:rl,B:qc,c:null,d:H,e:H,f:de,H:G,I:Q,j:K,L:ie,m:pe,M:Ae,p:Dc,q:ku,Q:Le,s:Ue,S:ee,u:ke,U:ve,V:be,w:se,W:ge,x:null,X:null,y:B,Y:re,Z:U,"%":De},lt={a:Su,A:Cu,b:Ca,B:Ec,c:null,d:me,e:me,f:Ee,H:we,I:ye,j:Re,L:Fe,m:ze,M:Ye,p:$o,q:jo,Q:Le,s:Ue,S:Ze,u:Pe,U:Be,V:Oe,w:ne,W:Me,x:null,X:null,y:Ce,Y:sr,Z:tr,"%":De},Wr={a:Sa,A:aa,b:In,B:Hn,c:Wt,d:q,e:q,f:O,H:R,I:R,j:D,L:I,m:k,M:z,p:yt,q:C,Q:J,s:Y,S:F,u:g,U:y,V:_,w:m,W:w,x:nt,X:sa,y:b,Y:T,Z:A,"%":X};yr.x=mt(qe,yr),yr.X=mt(Se,yr),yr.c=mt(oe,yr),lt.x=mt(qe,lt),lt.X=mt(Se,lt),lt.c=mt(oe,lt);function mt(mr,Zr){return function(jr){var nr=[],ua=-1,st=0,fa=mr.length,Rr,On,Vl;for(jr instanceof Date||(jr=new Date(+jr));++ua53)return null;"w"in nr||(nr.w=1),"Z"in nr?(st=a(n(nr.y,0,1)),fa=st.getUTCDay(),st=fa>4||fa===0?r.utcMonday.ceil(st):r.utcMonday(st),st=r.utcDay.offset(st,(nr.V-1)*7),nr.y=st.getUTCFullYear(),nr.m=st.getUTCMonth(),nr.d=st.getUTCDate()+(nr.w+6)%7):(st=t(n(nr.y,0,1)),fa=st.getDay(),st=fa>4||fa===0?r.timeMonday.ceil(st):r.timeMonday(st),st=r.timeDay.offset(st,(nr.V-1)*7),nr.y=st.getFullYear(),nr.m=st.getMonth(),nr.d=st.getDate()+(nr.w+6)%7)}else("W"in nr||"U"in nr)&&("w"in nr||(nr.w="u"in nr?nr.u%7:"W"in nr?1:0),fa="Z"in nr?a(n(nr.y,0,1)).getUTCDay():t(n(nr.y,0,1)).getDay(),nr.m=0,nr.d="W"in nr?(nr.w+6)%7+nr.W*7-(fa+5)%7:nr.w+nr.U*7-(fa+6)%7);return"Z"in nr?(nr.H+=nr.Z/100|0,nr.M+=nr.Z%100,a(nr)):t(nr)}}function ot(mr,Zr,jr,nr){for(var ua=0,st=Zr.length,fa=jr.length,Rr,On;ua=fa)return-1;if(Rr=Zr.charCodeAt(ua++),Rr===37){if(Rr=Zr.charAt(ua++),On=Wr[Rr in l?Zr.charAt(ua++):Rr],!On||(nr=On(mr,jr,nr))<0)return-1}else if(Rr!=jr.charCodeAt(nr++))return-1}return nr}function yt(mr,Zr,jr){var nr=$r.exec(Zr.slice(jr));return nr?(mr.p=Vr[nr[0].toLowerCase()],jr+nr[0].length):-1}function Sa(mr,Zr,jr){var nr=ka.exec(Zr.slice(jr));return nr?(mr.w=ra[nr[0].toLowerCase()],jr+nr[0].length):-1}function aa(mr,Zr,jr){var nr=Ct.exec(Zr.slice(jr));return nr?(mr.w=ea[nr[0].toLowerCase()],jr+nr[0].length):-1}function In(mr,Zr,jr){var nr=ta.exec(Zr.slice(jr));return nr?(mr.m=Ha[nr[0].toLowerCase()],jr+nr[0].length):-1}function Hn(mr,Zr,jr){var nr=pn.exec(Zr.slice(jr));return nr?(mr.m=Ia[nr[0].toLowerCase()],jr+nr[0].length):-1}function Wt(mr,Zr,jr){return ot(mr,oe,Zr,jr)}function nt(mr,Zr,jr){return ot(mr,qe,Zr,jr)}function sa(mr,Zr,jr){return ot(mr,Se,Zr,jr)}function Ul(mr){return ur[mr.getDay()]}function Gl(mr){return vr[mr.getDay()]}function rl(mr){return Ur[mr.getMonth()]}function qc(mr){return Mr[mr.getMonth()]}function Dc(mr){return ir[+(mr.getHours()>=12)]}function ku(mr){return 1+~~(mr.getMonth()/3)}function Su(mr){return ur[mr.getUTCDay()]}function Cu(mr){return vr[mr.getUTCDay()]}function Ca(mr){return Ur[mr.getUTCMonth()]}function Ec(mr){return Mr[mr.getUTCMonth()]}function $o(mr){return ir[+(mr.getUTCHours()>=12)]}function jo(mr){return 1+~~(mr.getUTCMonth()/3)}return{format:function(mr){var Zr=mt(mr+="",yr);return Zr.toString=function(){return mr},Zr},parse:function(mr){var Zr=Tt(mr+="",!1);return Zr.toString=function(){return mr},Zr},utcFormat:function(mr){var Zr=mt(mr+="",lt);return Zr.toString=function(){return mr},Zr},utcParse:function(mr){var Zr=Tt(mr+="",!0);return Zr.toString=function(){return mr},Zr}}}var l={"-":"",_:" ",0:"0"},o=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(ae,oe,qe){var Se=ae<0?"-":"",ir=(Se?-ae:ae)+"",vr=ir.length;return Se+(vr68?1900:2e3),qe+Se[0].length):-1}function A(ae,oe,qe){var Se=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(oe.slice(qe,qe+6));return Se?(ae.Z=Se[1]?0:-(Se[2]+(Se[3]||"00")),qe+Se[0].length):-1}function C(ae,oe,qe){var Se=o.exec(oe.slice(qe,qe+1));return Se?(ae.q=Se[0]*3-3,qe+Se[0].length):-1}function k(ae,oe,qe){var Se=o.exec(oe.slice(qe,qe+2));return Se?(ae.m=Se[0]-1,qe+Se[0].length):-1}function q(ae,oe,qe){var Se=o.exec(oe.slice(qe,qe+2));return Se?(ae.d=+Se[0],qe+Se[0].length):-1}function D(ae,oe,qe){var Se=o.exec(oe.slice(qe,qe+3));return Se?(ae.m=0,ae.d=+Se[0],qe+Se[0].length):-1}function R(ae,oe,qe){var Se=o.exec(oe.slice(qe,qe+2));return Se?(ae.H=+Se[0],qe+Se[0].length):-1}function z(ae,oe,qe){var Se=o.exec(oe.slice(qe,qe+2));return Se?(ae.M=+Se[0],qe+Se[0].length):-1}function F(ae,oe,qe){var Se=o.exec(oe.slice(qe,qe+2));return Se?(ae.S=+Se[0],qe+Se[0].length):-1}function I(ae,oe,qe){var Se=o.exec(oe.slice(qe,qe+3));return Se?(ae.L=+Se[0],qe+Se[0].length):-1}function O(ae,oe,qe){var Se=o.exec(oe.slice(qe,qe+6));return Se?(ae.L=Math.floor(Se[0]/1e3),qe+Se[0].length):-1}function X(ae,oe,qe){var Se=s.exec(oe.slice(qe,qe+1));return Se?qe+Se[0].length:-1}function J(ae,oe,qe){var Se=o.exec(oe.slice(qe));return Se?(ae.Q=+Se[0],qe+Se[0].length):-1}function Y(ae,oe,qe){var Se=o.exec(oe.slice(qe));return Se?(ae.s=+Se[0],qe+Se[0].length):-1}function H(ae,oe){return f(ae.getDate(),oe,2)}function G(ae,oe){return f(ae.getHours(),oe,2)}function Q(ae,oe){return f(ae.getHours()%12||12,oe,2)}function K(ae,oe){return f(1+r.timeDay.count(r.timeYear(ae),ae),oe,3)}function ie(ae,oe){return f(ae.getMilliseconds(),oe,3)}function de(ae,oe){return ie(ae,oe)+"000"}function pe(ae,oe){return f(ae.getMonth()+1,oe,2)}function Ae(ae,oe){return f(ae.getMinutes(),oe,2)}function ee(ae,oe){return f(ae.getSeconds(),oe,2)}function ke(ae){var oe=ae.getDay();return oe===0?7:oe}function ve(ae,oe){return f(r.timeSunday.count(r.timeYear(ae)-1,ae),oe,2)}function be(ae,oe){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),oe,2)}function se(ae){return ae.getDay()}function ge(ae,oe){return f(r.timeMonday.count(r.timeYear(ae)-1,ae),oe,2)}function B(ae,oe){return f(ae.getFullYear()%100,oe,2)}function re(ae,oe){return f(ae.getFullYear()%1e4,oe,4)}function U(ae){var oe=ae.getTimezoneOffset();return(oe>0?"-":(oe*=-1,"+"))+f(oe/60|0,"0",2)+f(oe%60,"0",2)}function me(ae,oe){return f(ae.getUTCDate(),oe,2)}function we(ae,oe){return f(ae.getUTCHours(),oe,2)}function ye(ae,oe){return f(ae.getUTCHours()%12||12,oe,2)}function Re(ae,oe){return f(1+r.utcDay.count(r.utcYear(ae),ae),oe,3)}function Fe(ae,oe){return f(ae.getUTCMilliseconds(),oe,3)}function Ee(ae,oe){return Fe(ae,oe)+"000"}function ze(ae,oe){return f(ae.getUTCMonth()+1,oe,2)}function Ye(ae,oe){return f(ae.getUTCMinutes(),oe,2)}function Ze(ae,oe){return f(ae.getUTCSeconds(),oe,2)}function Pe(ae){var oe=ae.getUTCDay();return oe===0?7:oe}function Be(ae,oe){return f(r.utcSunday.count(r.utcYear(ae)-1,ae),oe,2)}function Oe(ae,oe){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),oe,2)}function ne(ae){return ae.getUTCDay()}function Me(ae,oe){return f(r.utcMonday.count(r.utcYear(ae)-1,ae),oe,2)}function Ce(ae,oe){return f(ae.getUTCFullYear()%100,oe,2)}function sr(ae,oe){return f(ae.getUTCFullYear()%1e4,oe,4)}function tr(){return"+0000"}function De(){return"%"}function Le(ae){return+ae}function Ue(ae){return Math.floor(+ae/1e3)}var Xe;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 Xe=i(ae),e.timeFormat=Xe.format,e.timeParse=Xe.parse,e.utcFormat=Xe.utcFormat,e.utcParse=Xe.utcParse,Xe}var He="%Y-%m-%dT%H:%M:%S.%LZ";function Ke(ae){return ae.toISOString()}var cr=Date.prototype.toISOString?Ke:e.utcFormat(He);function lr(ae){var oe=new Date(ae);return isNaN(oe)?null:oe}var Ne=+new Date("2000-01-01T00:00:00.000Z")?lr:e.utcParse(He);e.isoFormat=cr,e.isoParse=Ne,e.timeFormatDefaultLocale=Ge,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var B1=Z((ov,vb)=>{(function(e,r){typeof ov=="object"&&typeof vb!="undefined"?r(ov):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(ov,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,Q=H.align,K=H.sign,ie=H.symbol,de=H.zero,pe=H.width,Ae=H.comma,ee=H.precision,ke=H.trim,ve=H.type;ve==="n"?(Ae=!0,ve="g"):d[ve]||(ee===void 0&&(ee=12),ke=!0,ve="g"),(de||G==="0"&&Q==="=")&&(de=!0,G="0",Q="=");var be=ie==="$"?D:ie==="#"&&/[boxX]/.test(ve)?"0"+ve.toLowerCase():"",se=ie==="$"?R:/[%p]/.test(ve)?I:"",ge=d[ve],B=/[defgprs%]/.test(ve);ee=ee===void 0?6:/[gprs]/.test(ve)?Math.max(1,Math.min(21,ee)):Math.max(0,Math.min(20,ee));function re(U){var me=be,we=se,ye,Re,Fe;if(ve==="c")we=ge(U)+we,U="";else{U=+U;var Ee=U<0||1/U<0;if(U=isNaN(U)?X:ge(Math.abs(U),ee),ke&&(U=u(U)),Ee&&+U==0&&K!=="+"&&(Ee=!1),me=(Ee?K==="("?K:O:K==="-"||K==="("?"":K)+me,we=(ve==="s"?y[8+f/3]:"")+we+(Ee&&K==="("?")":""),B){for(ye=-1,Re=U.length;++yeFe||Fe>57){we=(Fe===46?z+U.slice(ye+1):U.slice(ye))+we,U=U.slice(0,ye);break}}}Ae&&!de&&(U=q(U,1/0));var ze=me.length+U.length+we.length,Ye=ze>1)+me+U+we+Ye.slice(ze);break;default:U=Ye+me+U+we;break}return F(U)}return re.toString=function(){return H+""},re}function Y(H,G){var Q=J((H=o(H),H.type="f",H)),K=Math.max(-8,Math.min(8,Math.floor(a(G)/3)))*3,ie=Math.pow(10,-K),de=y[8+K/3];return function(pe){return Q(ie*pe)+de}}return{format:J,formatPrefix:Y}}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 db=Z((sie,hb)=>{"use strict";hb.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((uie,pb)=>{"use strict";var nI=db();pb.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&nI(t))return!1}else if(r!=="number")return!1;return e-e<1}});var Bt=Z((fie,mb)=>{"use strict";mb.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((sv,yb)=>{(function(e,r){typeof sv=="object"&&typeof yb!="undefined"?r(sv):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(sv,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((cie,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 an=Z(Un=>{"use strict";var iI=Y1().decode,lI=nl(),U1=Array.isArray,oI=ArrayBuffer,sI=DataView;function bb(e){return oI.isView(e)&&!(e instanceof sI)}Un.isTypedArray=bb;function uv(e){return U1(e)||bb(e)}Un.isArrayOrTypedArray=uv;function uI(e){return!uv(e[0])}Un.isArray1D=uI;Un.ensureArray=function(e,r){return U1(e)||(e=[]),e.length=r,e};var na={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};na.uint8c=na.u1c;na.uint8=na.u1;na.int8=na.i1;na.uint16=na.u2;na.int16=na.i2;na.uint32=na.u4;na.int32=na.i4;na.float32=na.f4;na.float64=na.f8;function G1(e){return e.constructor===ArrayBuffer}Un.isArrayBuffer=G1;Un.decodeTypedArraySpec=function(e){var r=[],t=fI(e),a=t.dtype,n=na[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,l=t.bdata;G1(l)||(l=iI(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 _b=Hr(),W1=an().isArrayOrTypedArray;Ab.exports=function(r,t){if(_b(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=fv(),pI=/^\w*$/,mI=0,kb=1,cv=2,Sb=3,Ql=4;Cb.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]|cv,v.set(h,null);if(f){for(i=d;i{"use strict";var yI=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,gI=/^[^\.\[\]]+$/;qb.exports=function(e,r){for(;r;){var t=e.match(yI);if(t)e=t[1];else if(e.match(gI))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 vv=Z((mie,Eb)=>{"use strict";var bI=Hr();Eb.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 bI(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var zb=Z((yie,Rb)=>{"use strict";var Pb=an().isArrayOrTypedArray,Iu=nl();Rb.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(Pb(n)&&Pb(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 xI(e,r){var t=e%r;return t<0?t+r:t}function _I(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}Nb.exports={mod:xI,modHalf:_I}});var bn=Z((bie,hv)=>{(function(e){var r=/^\s+/,t=/\s+$/,a=0,n=e.round,i=e.min,l=e.max,o=e.random;function s(B,re){if(B=B||"",re=re||{},B instanceof s)return B;if(!(this instanceof s))return new s(B,re);var U=u(B);this._originalInput=B,this._r=U.r,this._g=U.g,this._b=U.b,this._a=U.a,this._roundA=n(100*this._a)/100,this._format=re.format||U.format,this._gradientType=re.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=U.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 B=this.toRgb();return(B.r*299+B.g*587+B.b*114)/1e3},getLuminance:function(){var B=this.toRgb(),re,U,me,we,ye,Re;return re=B.r/255,U=B.g/255,me=B.b/255,re<=.03928?we=re/12.92:we=e.pow((re+.055)/1.055,2.4),U<=.03928?ye=U/12.92:ye=e.pow((U+.055)/1.055,2.4),me<=.03928?Re=me/12.92:Re=e.pow((me+.055)/1.055,2.4),.2126*we+.7152*ye+.0722*Re},setAlpha:function(B){return this._a=H(B),this._roundA=n(100*this._a)/100,this},toHsv:function(){var B=d(this._r,this._g,this._b);return{h:B.h*360,s:B.s,v:B.v,a:this._a}},toHsvString:function(){var B=d(this._r,this._g,this._b),re=n(B.h*360),U=n(B.s*100),me=n(B.v*100);return this._a==1?"hsv("+re+", "+U+"%, "+me+"%)":"hsva("+re+", "+U+"%, "+me+"%, "+this._roundA+")"},toHsl:function(){var B=v(this._r,this._g,this._b);return{h:B.h*360,s:B.s,l:B.l,a:this._a}},toHslString:function(){var B=v(this._r,this._g,this._b),re=n(B.h*360),U=n(B.s*100),me=n(B.l*100);return this._a==1?"hsl("+re+", "+U+"%, "+me+"%)":"hsla("+re+", "+U+"%, "+me+"%, "+this._roundA+")"},toHex:function(B){return g(this._r,this._g,this._b,B)},toHexString:function(B){return"#"+this.toHex(B)},toHex8:function(B){return y(this._r,this._g,this._b,this._a,B)},toHex8String:function(B){return"#"+this.toHex8(B)},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(B){var re="#"+_(this._r,this._g,this._b,this._a),U=re,me=this._gradientType?"GradientType = 1, ":"";if(B){var we=s(B);U="#"+_(we._r,we._g,we._b,we._a)}return"progid:DXImageTransform.Microsoft.gradient("+me+"startColorstr="+re+",endColorstr="+U+")"},toString:function(B){var re=!!B;B=B||this._format;var U=!1,me=this._a<1&&this._a>=0,we=!re&&me&&(B==="hex"||B==="hex6"||B==="hex3"||B==="hex4"||B==="hex8"||B==="name");return we?B==="name"&&this._a===0?this.toName():this.toRgbString():(B==="rgb"&&(U=this.toRgbString()),B==="prgb"&&(U=this.toPercentageRgbString()),(B==="hex"||B==="hex6")&&(U=this.toHexString()),B==="hex3"&&(U=this.toHexString(!0)),B==="hex4"&&(U=this.toHex8String(!0)),B==="hex8"&&(U=this.toHex8String()),B==="name"&&(U=this.toName()),B==="hsl"&&(U=this.toHslString()),B==="hsv"&&(U=this.toHsvString()),U||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(B,re){var U=B.apply(null,[this].concat([].slice.call(re)));return this._r=U._r,this._g=U._g,this._b=U._b,this.setAlpha(U._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(B,re){return B.apply(null,[this].concat([].slice.call(re)))},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(B,re){if(typeof B=="object"){var U={};for(var me in B)B.hasOwnProperty(me)&&(me==="a"?U[me]=B[me]:U[me]=Ae(B[me]));B=U}return s(B,re)};function u(B){var re={r:0,g:0,b:0},U=1,me=null,we=null,ye=null,Re=!1,Fe=!1;return typeof B=="string"&&(B=se(B)),typeof B=="object"&&(be(B.r)&&be(B.g)&&be(B.b)?(re=f(B.r,B.g,B.b),Re=!0,Fe=String(B.r).substr(-1)==="%"?"prgb":"rgb"):be(B.h)&&be(B.s)&&be(B.v)?(me=Ae(B.s),we=Ae(B.v),re=m(B.h,me,we),Re=!0,Fe="hsv"):be(B.h)&&be(B.s)&&be(B.l)&&(me=Ae(B.s),ye=Ae(B.l),re=h(B.h,me,ye),Re=!0,Fe="hsl"),B.hasOwnProperty("a")&&(U=B.a)),U=H(U),{ok:Re,format:B.format||Fe,r:i(255,l(re.r,0)),g:i(255,l(re.g,0)),b:i(255,l(re.b,0)),a:U}}function f(B,re,U){return{r:G(B,255)*255,g:G(re,255)*255,b:G(U,255)*255}}function v(B,re,U){B=G(B,255),re=G(re,255),U=G(U,255);var me=l(B,re,U),we=i(B,re,U),ye,Re,Fe=(me+we)/2;if(me==we)ye=Re=0;else{var Ee=me-we;switch(Re=Fe>.5?Ee/(2-me-we):Ee/(me+we),me){case B:ye=(re-U)/Ee+(re1&&(Ze-=1),Ze<1/6?ze+(Ye-ze)*6*Ze:Ze<1/2?Ye:Ze<2/3?ze+(Ye-ze)*(2/3-Ze)*6:ze}if(re===0)me=we=ye=U;else{var Fe=U<.5?U*(1+re):U+re-U*re,Ee=2*U-Fe;me=Re(Ee,Fe,B+1/3),we=Re(Ee,Fe,B),ye=Re(Ee,Fe,B-1/3)}return{r:me*255,g:we*255,b:ye*255}}function d(B,re,U){B=G(B,255),re=G(re,255),U=G(U,255);var me=l(B,re,U),we=i(B,re,U),ye,Re,Fe=me,Ee=me-we;if(Re=me===0?0:Ee/me,me==we)ye=0;else{switch(me){case B:ye=(re-U)/Ee+(re>1)+720)%360;--re;)me.h=(me.h+we)%360,ye.push(s(me));return ye}function O(B,re){re=re||6;for(var U=s(B).toHsv(),me=U.h,we=U.s,ye=U.v,Re=[],Fe=1/re;re--;)Re.push(s({h:me,s:we,v:ye})),ye=(ye+Fe)%1;return Re}s.mix=function(B,re,U){U=U===0?0:U||50;var me=s(B).toRgb(),we=s(re).toRgb(),ye=U/100,Re={r:(we.r-me.r)*ye+me.r,g:(we.g-me.g)*ye+me.g,b:(we.b-me.b)*ye+me.b,a:(we.a-me.a)*ye+me.a};return s(Re)},s.readability=function(B,re){var U=s(B),me=s(re);return(e.max(U.getLuminance(),me.getLuminance())+.05)/(e.min(U.getLuminance(),me.getLuminance())+.05)},s.isReadable=function(B,re,U){var me=s.readability(B,re),we,ye;switch(ye=!1,we=ge(U),we.level+we.size){case"AAsmall":case"AAAlarge":ye=me>=4.5;break;case"AAlarge":ye=me>=3;break;case"AAAsmall":ye=me>=7;break}return ye},s.mostReadable=function(B,re,U){var me=null,we=0,ye,Re,Fe,Ee;U=U||{},Re=U.includeFallbackColors,Fe=U.level,Ee=U.size;for(var ze=0;zewe&&(we=ye,me=s(re[ze]));return s.isReadable(B,me,{level:Fe,size:Ee})||!Re?me:(U.includeFallbackColors=!1,s.mostReadable(B,["#fff","#000"],U))};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=Y(X);function Y(B){var re={};for(var U in B)B.hasOwnProperty(U)&&(re[B[U]]=U);return re}function H(B){return B=parseFloat(B),(isNaN(B)||B<0||B>1)&&(B=1),B}function G(B,re){ie(B)&&(B="100%");var U=de(B);return B=i(re,l(0,parseFloat(B))),U&&(B=parseInt(B*re,10)/100),e.abs(B-re)<1e-6?1:B%re/parseFloat(re)}function Q(B){return i(1,l(0,B))}function K(B){return parseInt(B,16)}function ie(B){return typeof B=="string"&&B.indexOf(".")!=-1&&parseFloat(B)===1}function de(B){return typeof B=="string"&&B.indexOf("%")!=-1}function pe(B){return B.length==1?"0"+B:""+B}function Ae(B){return B<=1&&(B=B*100+"%"),B}function ee(B){return e.round(parseFloat(B)*255).toString(16)}function ke(B){return K(B)/255}var ve=function(){var B="[-\\+]?\\d+%?",re="[-\\+]?\\d*\\.\\d+%?",U="(?:"+re+")|(?:"+B+")",me="[\\s|\\(]+("+U+")[,|\\s]+("+U+")[,|\\s]+("+U+")\\s*\\)?",we="[\\s|\\(]+("+U+")[,|\\s]+("+U+")[,|\\s]+("+U+")[,|\\s]+("+U+")\\s*\\)?";return{CSS_UNIT:new RegExp(U),rgb:new RegExp("rgb"+me),rgba:new RegExp("rgba"+we),hsl:new RegExp("hsl"+me),hsla:new RegExp("hsla"+we),hsv:new RegExp("hsv"+me),hsva:new RegExp("hsva"+we),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 be(B){return!!ve.CSS_UNIT.exec(B)}function se(B){B=B.replace(r,"").replace(t,"").toLowerCase();var re=!1;if(X[B])B=X[B],re=!0;else if(B=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var U;return(U=ve.rgb.exec(B))?{r:U[1],g:U[2],b:U[3]}:(U=ve.rgba.exec(B))?{r:U[1],g:U[2],b:U[3],a:U[4]}:(U=ve.hsl.exec(B))?{h:U[1],s:U[2],l:U[3]}:(U=ve.hsla.exec(B))?{h:U[1],s:U[2],l:U[3],a:U[4]}:(U=ve.hsv.exec(B))?{h:U[1],s:U[2],v:U[3]}:(U=ve.hsva.exec(B))?{h:U[1],s:U[2],v:U[3],a:U[4]}:(U=ve.hex8.exec(B))?{r:K(U[1]),g:K(U[2]),b:K(U[3]),a:ke(U[4]),format:re?"name":"hex8"}:(U=ve.hex6.exec(B))?{r:K(U[1]),g:K(U[2]),b:K(U[3]),format:re?"name":"hex"}:(U=ve.hex4.exec(B))?{r:K(U[1]+""+U[1]),g:K(U[2]+""+U[2]),b:K(U[3]+""+U[3]),a:ke(U[4]+""+U[4]),format:re?"name":"hex8"}:(U=ve.hex3.exec(B))?{r:K(U[1]+""+U[1]),g:K(U[2]+""+U[2]),b:K(U[3]+""+U[3]),format:re?"name":"hex"}:!1}function ge(B){var re,U;return B=B||{level:"AA",size:"small"},re=(B.level||"AA").toUpperCase(),U=(B.size||"small").toLowerCase(),re!=="AA"&&re!=="AAA"&&(re="AA"),U!=="small"&&U!=="large"&&(U="small"),{level:re,size:U}}typeof hv!="undefined"&&hv.exports?hv.exports=s:window.tinycolor=s})(Math)});var Yt=Z(Bu=>{"use strict";var Fb=nl(),Hu=Array.isArray;function wI(e,r){var t,a;for(t=0;t{"use strict";Ib.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((wie,Hb)=>{"use strict";Hb.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var fs=Z((Tie,Yb)=>{"use strict";var Ob=Yu(),Bb=ha(),Z1=Bb({editType:"none"});Z1.family.dflt=Ob.HOVERFONT;Z1.size.dflt=Ob.HOVERFONTSIZE;Yb.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:Bb({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var mv=Z((Mie,Ub)=>{"use strict";var TI=ha(),dv=fs().hoverlabel,pv=Yt().extendFlat;Ub.exports={hoverlabel:{bgcolor:pv({},dv.bgcolor,{arrayOk:!0}),bordercolor:pv({},dv.bordercolor,{arrayOk:!0}),font:TI({arrayOk:!0,editType:"none"}),align:pv({},dv.align,{arrayOk:!0}),namelength:pv({},dv.namelength,{arrayOk:!0}),editType:"none"}}});var Gn=Z((Aie,Gb)=>{"use strict";var MI=ha(),AI=mv();Gb.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:MI({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:AI.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((kie,Zb)=>{"use strict";var kI=bn(),yv={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=yv.RdBu;function SI(e,r){if(r||(r=Vb),!e)return r;function t(){try{e=yv[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),Wb(e)?e:r}function Wb(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((Cie,Xb)=>{"use strict";var Va=bn(),LI=Hr(),qI=an().isTypedArray,Zt=Xb.exports={},gv=hi();Zt.defaults=gv.defaults;var DI=Zt.defaultLine=gv.defaultLine;Zt.lightLine=gv.lightLine;var J1=Zt.background=gv.background;Zt.tinyRGB=function(e){var r=e.toRgb();return"rgb("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+")"};Zt.rgb=function(e){return Zt.tinyRGB(Va(e))};Zt.opacity=function(e){return e?Va(e).getAlpha():0};Zt.addOpacity=function(e,r){var t=Va(e).toRgb();return"rgba("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+", "+r+")"};Zt.combine=function(e,r){var t=Va(e).toRgb();if(t.a===1)return Va(e).toRgbString();var a=Va(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 Va(i).toRgbString()};Zt.interpolate=function(e,r,t){var a=Va(e).toRgb(),n=Va(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 Va(i).toRgbString()};Zt.contrast=function(e,r,t){var a=Va(e);a.getAlpha()!==1&&(a=Va(Zt.combine(e,J1)));var n=a.isDark()?r?a.lighten(r):J1:t?a.darken(t):DI;return n.toString()};Zt.stroke=function(e,r){var t=Va(r);e.style({stroke:Zt.tinyRGB(t),"stroke-opacity":t.getAlpha()})};Zt.fill=function(e,r){var t=Va(r);e.style({fill:Zt.tinyRGB(t),"fill-opacity":t.getAlpha()})};Zt.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 bv=Z((Lie,Jb)=>{"use strict";Jb.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var cs=Z(Kb=>{"use strict";Kb.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 ex=Z(Wa=>{"use strict";var K1=Hr(),Qb=bn(),$b=Yt().extendFlat,EI=Gn(),PI=$l(),RI=Er(),zI=bv().DESELECTDIM,vs=fv(),jb=cs().counter,NI=us().modHalf,di=an().isArrayOrTypedArray,il=an().isTypedArraySpec,ll=an().decodeTypedArraySpec;Wa.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)),Qb(e).isValid()?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){function a(n){return Qb(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(PI.get(e,t))}},angle:{coerceFunction:function(e,r,t){il(e)&&(e=ll(e)),e==="auto"?r.set("auto"):K1(e)?r.set(NI(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||jb(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:!!jb(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 rx={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/"},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:{}}},tx={};function ax(e,r){for(var t in e){var a=e[t];a.valType?r[t]=a.dflt:(r[t]||(r[t]={}),ax(a,r[t]))}}ax(rx,tx);nx.exports={configAttributes:rx,dfltConfig:tx}});var $1=Z((Pie,ix)=>{"use strict";var Q1=Ir(),FI=Hr(),Uu=[];ix.exports=function(e,r){if(Uu.indexOf(e)!==-1)return;Uu.push(e);var t=1e3;FI(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(Uu);function i(l){l.duration(700).style("opacity",0).each("end",function(o){var s=Uu.indexOf(o);s!==-1&&Uu.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=lx.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 _v=Z((zie,ox)=>{"use strict";ox.exports=function(){}});var rp=Z((Nie,sx)=>{"use strict";sx.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n{ux.exports=II;function II(){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 vx=Z((Iie,cx)=>{cx.exports=HI;function HI(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 dx=Z((Hie,hx)=>{hx.exports=OI;function OI(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((Oie,px)=>{px.exports=BI;function BI(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 yx=Z((Bie,mx)=>{mx.exports=YI;function YI(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 bx=Z((Yie,gx)=>{gx.exports=UI;function UI(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 _x=Z((Uie,xx)=>{xx.exports=GI;function GI(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 Tx=Z((Gie,wx)=>{wx.exports=VI;function VI(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 Ax=Z((Vie,Mx)=>{Mx.exports=WI;function WI(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 Sx=Z((Wie,kx)=>{kx.exports=ZI;function ZI(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 Lx=Z((Zie,Cx)=>{Cx.exports=XI;function XI(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 Dx=Z((Xie,qx)=>{qx.exports=JI;function JI(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 Px=Z((Jie,Ex)=>{Ex.exports=KI;function KI(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 zx=Z((Kie,Rx)=>{Rx.exports=QI;function QI(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 Fx=Z((Qie,Nx)=>{Nx.exports=$I;function $I(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 Hx=Z(($ie,Ix)=>{Ix.exports=jI;function jI(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 Bx=Z((jie,Ox)=>{Ox.exports=eH;function eH(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 Ux=Z((ele,Yx)=>{Yx.exports=rH;function rH(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 Vx=Z((rle,Gx)=>{Gx.exports=tH;function tH(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 Zx=Z((tle,Wx)=>{Wx.exports=aH;function aH(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 Jx=Z((ale,Xx)=>{Xx.exports=nH;function nH(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 Qx=Z((nle,Kx)=>{Kx.exports=iH;function iH(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((ile,$x)=>{$x.exports=lH;function lH(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 e_=Z((lle,jx)=>{jx.exports=oH;function oH(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 t_=Z((ole,r_)=>{r_.exports=sH;function sH(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 n_=Z((sle,a_)=>{a_.exports=uH;function uH(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 l_=Z((ule,i_)=>{i_.exports=fH;function fH(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 s_=Z((fle,o_)=>{var cH=tp();o_.exports=vH;function vH(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?cH(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 f_=Z((cle,u_)=>{u_.exports=hH;function hH(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((vle,c_)=>{c_.exports={create:fx(),clone:vx(),copy:dx(),identity:tp(),transpose:yx(),invert:bx(),adjoint:_x(),determinant:Tx(),multiply:Ax(),translate:Sx(),scale:Lx(),rotate:Dx(),rotateX:Px(),rotateY:zx(),rotateZ:Fx(),fromRotation:Hx(),fromRotationTranslation:Bx(),fromScaling:Ux(),fromTranslation:Vx(),fromXRotation:Zx(),fromYRotation:Jx(),fromZRotation:Qx(),fromQuat:ap(),frustum:e_(),perspective:t_(),perspectiveFromFieldOfView:n_(),ortho:l_(),lookAt:s_(),str:f_()}});var wv=Z(qt=>{"use strict";var dH=np();qt.init2dArray=function(e,r){for(var t=new Array(e),a=0;a{"use strict";var pH=Ir(),v_=ro(),mH=wv(),yH=np();function gH(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 bH(e){var r=pH.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function h_(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function xH(e,r){d_("global",e,r)}function d_(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):v_.warn("addStyleRule failed"):v_.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function _H(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&h_(t)}function wH(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 TH(e){var r=m_(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=p_(a);if(n){var i=mH.convertCssMatrix(n);t=yH.multiply(t,t,i)}}),t}function p_(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 m_(e){for(var r=[];MH(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function MH(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function AH(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}y_.exports={getGraphDiv:gH,isPlotDiv:bH,removeElement:h_,addStyleRule:xH,addRelatedStyleRule:d_,deleteRelatedStyleRule:_H,setStyleOnHover:wH,getFullTransformMatrix:TH,getElementTransformMatrix:p_,getElementAndAncestors:m_,equalDomRects:AH}});var Vu=Z((ple,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 pi=Z((mle,A_)=>{"use strict";var x_=Yt().extendFlat,kH=nl(),__={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},w_={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},SH=__.flags.slice().concat(["fullReplot"]),CH=w_.flags.slice().concat("layoutReplot");A_.exports={traces:__,layout:w_,traceFlags:function(){return b_(SH)},layoutFlags:function(){return b_(CH)},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((gle,k_)=>{"use strict";k_.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 zi=Z(Tv=>{"use strict";var S_=lp(),ble=S_.FORMAT_LINK,xle=S_.DATE_FORMAT_LINK;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 C_(e,r){return r?r.l2d(e):e}function LH(e){return e.x0}function qH(e){return e.x1}function DH(e){return e.y0}function EH(e){return e.y1}function L_(e){return e.x0shift||0}function q_(e){return e.x1shift||0}function D_(e){return e.y0shift||0}function E_(e){return e.y1shift||0}function Mv(e,r){return ol(e.x1,r)+q_(e)-ol(e.x0,r)-L_(e)}function Av(e,r,t){return ol(e.y1,t)+E_(e)-ol(e.y0,t)-D_(e)}function PH(e,r){return Math.abs(Mv(e,r))}function RH(e,r,t){return Math.abs(Av(e,r,t))}function zH(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 NH(e,r){return C_((ol(e.x1,r)+q_(e)+ol(e.x0,r)+L_(e))/2,r)}function FH(e,r,t){return C_((ol(e.y1,t)+E_(e)+ol(e.y0,t)+D_(e))/2,t)}function IH(e,r,t){return e.type!=="line"?void 0:Av(e,r,t)/Mv(e,r)}P_.exports={x0:LH,x1:qH,y0:DH,y1:EH,slope:IH,dx:Mv,dy:Av,width:PH,height:RH,length:zH,xcenter:NH,ycenter:FH}});var N_=Z((Tle,z_)=>{"use strict";var HH=pi().overrideAll,to=Gn(),R_=ha(),OH=mi().dash,sl=Yt().extendFlat,BH=zi().shapeTexttemplateAttrs,YH=kv();z_.exports=HH({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:R_({})},legendrank:sl({},to.legendrank,{}),legendwidth:sl({},to.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:sl({},OH,{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:BH({newshape:!0},{keys:Object.keys(YH)}),font:R_({}),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 I_=Z((Mle,F_)=>{"use strict";var UH=mi().dash,GH=Yt().extendFlat;F_.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:GH({},UH,{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((Ale,H_)=>{"use strict";H_.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((kle,U_)=>{"use strict";var sp=ha(),VH=Vu(),Cv=hi(),O_=N_(),B_=I_(),WH=Sv(),Y_=Yt().extendFlat,Lv=sp({editType:"calc"});Lv.family.dflt='"Open Sans", verdana, arial, sans-serif';Lv.size.dflt=12;Lv.color.dflt=Cv.defaultLine;U_.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:Y_(WH({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:O_.newshape,activeshape:O_.activeshape,newselection:B_.newselection,activeselection:B_.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:Y_({},VH.transition,{editType:"none"})}});var G_=lb(()=>{});var ZH={};var V_=lb(()=>{G_()});var gr=Z(zr=>{"use strict";var ps=ro(),W_=_v(),Z_=rp(),XH=nl(),JH=Gu().addStyleRule,X_=Yt(),KH=Gn(),QH=ds(),$H=X_.extendFlat,up=X_.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 nO=os().timeFormat,i4=Hr(),fp=ro(),fl=us().mod,gs=Bt(),xn=gs.BADNUM,Za=gs.ONEDAY,Wu=gs.ONEHOUR,ul=gs.ONEMIN,ys=gs.ONESEC,Zu=gs.EPOCHJD,Ni=gr(),j_=os().utcFormat,iO=/^\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,lO=/^\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,e4=new Date().getFullYear()-70;function Fi(e){return e&&Ni.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}Dt.dateTick0=function(e,r){var t=oO(e,!!r);if(r<2)return t;var a=Dt.dateTime2ms(t,e);return a+=Za*(r-1),Dt.ms2DateTime(a,0,e)};function oO(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"}Dt.dfltRange=function(e){return Fi(e)?Ni.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};Dt.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Dv,Ev;Dt.dateTime2ms=function(e,r){if(Dt.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?lO:iO);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()-Zu)*Za+h*Wu+d*ul+m*ys:xn}u.length===2?u=(Number(u)+2e3-e4)%100+e4: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=Dt.MIN_MS=Dt.dateTime2ms("-9999");Ev=Dt.MAX_MS=Dt.dateTime2ms("9999-12-31 23:59:59.9999");Dt.isDateTime=function(e,r){return Dt.dateTime2ms(e,r)!==xn};function ms(e,r){return String(e+Math.pow(10,r)).substr(1)}var qv=90*Za,r4=3*Wu,t4=5*ul;Dt.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/Za)+Zu,h=Math.floor(fl(e,Za));try{i=Ni.getComponentMethod("calendars","getCal")(t).fromJD(v).formatDate("yyyy-mm-dd")}catch(d){i=j_("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+Za&&e<=Ev-Za))return xn;var r=Math.floor(fl(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=nO("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),l=t.getSeconds(),o=t.getUTCMilliseconds()*10+r;return l4(a,n,i,l,o)};function l4(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}Dt.cleanDate=function(e,r,t){if(e===xn)return r;if(Dt.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=Dt.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!Dt.isDateTime(e,t))return fp.error("unrecognized date",e),r;return e};var sO=/%\d?f/g,uO=/%h/g,fO={1:"1",2:"1",3:"2",4:"2"};function a4(e,r,t,a){e=e.replace(sO,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(uO,function(){return fO[t("%q")(n)]}),Fi(a))try{e=Ni.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var cO=[59,59.9,59.99,59.999,59.9999];function vO(e,r){var t=fl(e+.05,Za),a=ms(Math.floor(t/Wu),2)+":"+ms(fl(Math.floor(t/ul),60),2);if(r!=="M"){i4(r)||(r=0);var n=Math.min(fl(e/ys,60),cO[r]),i=(100+n).toFixed(r).substr(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}Dt.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 vO(e,t)+`
-`+a4(i.dayMonthYear,e,a,n);return a4(r,e,a,n)};var n4=3*Za;Dt.incrementMonth=function(e,r,t){t=Fi(t)&&t;var a=fl(e,Za);if(e=Math.round(e-a),t)try{var n=Math.round(e/Za)+Zu,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()-Zu)*Za+a}catch(s){fp.error("invalid ms "+e+" in calendar "+t)}var o=new Date(e+n4);return o.setUTCMonth(o.getUTCMonth()+r)+a-n4};Dt.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";s4.exports=function(r){return r}});var hp=Z(Ii=>{"use strict";var hO=Hr(),dO=ro(),pO=cp(),mO=Bt().BADNUM,vp=1e-9;Ii.findBin=function(e,r,t){if(hO(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?yO:gO:s=t?xO:bO,e+=l*vp*(t?-1:1)*(l>=0?1:-1);a90&&dO.log("Long binary search..."),a-1};function yO(e,r){return er}function xO(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]===mO;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||pO;for(var t=1/0,a,n=0;n{"use strict";u4.exports=function(r){return Object.keys(r).sort()}});var f4=Z(Et=>{"use strict";var Xu=Hr(),_O=an().isArrayOrTypedArray;Et.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),Xu(r)||(r=!1),_O(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 p4=Z((Nle,d4)=>{"use strict";var c4=us(),pp=c4.mod,wO=c4.modHalf,Ju=Math.PI,cl=2*Ju;function TO(e){return e/180*Ju}function MO(e){return e/Ju*180}function mp(e){return Math.abs(e[1]-e[0])>cl-1e-14}function v4(e,r){return wO(r-e,cl)}function AO(e,r){return Math.abs(v4(e,r))}function h4(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 kO(e,r,t,a){if(!h4(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=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 b4=Z(no=>{"use strict";var gp=us().mod;no.segmentsIntersect=g4;function g4(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(g4(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,y4;no.getTextLocation=function(r,t,a,n){if((r!==bp||n!==y4)&&(Rv={},bp=r,y4=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(Ku=>{"use strict";var Hi={};Ku.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)};Ku.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}})};Ku.clear=function(e){if(e)x4(Hi[e]),delete Hi[e];else for(var r in Hi)Ku.clear(r)};function x4(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var w4=Z((Ole,_4)=>{"use strict";_4.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var T4=Z((Ble,Nv)=>{"use strict";Nv.exports=xp;Nv.exports.isMobile=xp;Nv.exports.default=xp;var qO=/(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/,EO=/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=qO.test(r)&&!DO.test(r)||!!e.tablet&&EO.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var A4=Z((Yle,M4)=>{"use strict";var PO=Hr(),RO=T4();M4.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=zO(),typeof t!="string")return!0;var a=RO({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(PO(u)&&(u=+u),u>=13)return!0}}}return a};function zO(){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 S4=Z((Ule,k4)=>{"use strict";var NO=Ir();k4.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]=NO.select(this)}),n}});var L4=Z((Gle,C4)=>{"use strict";var FO=gr();C4.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=FO.localeRegistry}var u=a.split("-")[0];if(u===a)break;a=u}return t}});var D4=Z((Vle,q4)=>{"use strict";q4.exports=function(r){for(var t={},a=[],n=0,i=0;i{"use strict";E4.exports=function(r){for(var t=OO(r)?HO:IO,a=[],n=0;n{"use strict";R4.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 F4=Z((Xle,N4)=>{"use strict";var BO=Hr(),YO=Bt().BADNUM,UO=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;N4.exports=function(r){return typeof r=="string"&&(r=r.replace(UO,"")),BO(r)?Number(r):YO}});var Ie=Z((Jle,K4)=>{"use strict";var Qu=Ir(),GO=os().utcFormat,VO=B1().format,U4=Hr(),G4=Bt(),V4=G4.FP_SAFE,WO=-V4,I4=G4.BADNUM,fe=K4.exports={};fe.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 H4={};fe.warnBadFormat=function(e){var r=String(e);H4[r]||(H4[r]=1,fe.warn('encountered bad format: "'+r+'"'))};fe.noFormat=function(e){return String(e)};fe.numberFormat=function(e){var r;try{r=VO(fe.adjustFormat(e))}catch(t){return fe.warnBadFormat(e),fe.noFormat}return r};fe.nestedProperty=fv();fe.keyedContainer=Lb();fe.relativeAttr=Db();fe.isPlainObject=nl();fe.toLogRange=vv();fe.relinkPrivateKeys=zb();var vl=an();fe.isArrayBuffer=vl.isArrayBuffer;fe.isTypedArray=vl.isTypedArray;fe.isArrayOrTypedArray=vl.isArrayOrTypedArray;fe.isArray1D=vl.isArray1D;fe.ensureArray=vl.ensureArray;fe.concat=vl.concat;fe.maxRowLength=vl.maxRowLength;fe.minRowLength=vl.minRowLength;var W4=us();fe.mod=W4.mod;fe.modHalf=W4.modHalf;var hl=ex();fe.valObjectMeta=hl.valObjectMeta;fe.coerce=hl.coerce;fe.coerce2=hl.coerce2;fe.coerceFont=hl.coerceFont;fe.coercePattern=hl.coercePattern;fe.coerceHoverinfo=hl.coerceHoverinfo;fe.coerceSelectionMarkerOpacity=hl.coerceSelectionMarkerOpacity;fe.validate=hl.validate;var nn=o4();fe.dateTime2ms=nn.dateTime2ms;fe.isDateTime=nn.isDateTime;fe.ms2DateTime=nn.ms2DateTime;fe.ms2DateTimeLocal=nn.ms2DateTimeLocal;fe.cleanDate=nn.cleanDate;fe.isJSDate=nn.isJSDate;fe.formatDate=nn.formatDate;fe.incrementMonth=nn.incrementMonth;fe.dateTick0=nn.dateTick0;fe.dfltRange=nn.dfltRange;fe.findExactDates=nn.findExactDates;fe.MIN_MS=nn.MIN_MS;fe.MAX_MS=nn.MAX_MS;var io=hp();fe.findBin=io.findBin;fe.sorterAsc=io.sorterAsc;fe.sorterDes=io.sorterDes;fe.distinctVals=io.distinctVals;fe.roundUp=io.roundUp;fe.sort=io.sort;fe.findIndexOfMin=io.findIndexOfMin;fe.sortObjectKeys=dp();var Oi=f4();fe.aggNums=Oi.aggNums;fe.len=Oi.len;fe.mean=Oi.mean;fe.geometricMean=Oi.geometricMean;fe.median=Oi.median;fe.midRange=Oi.midRange;fe.variance=Oi.variance;fe.stdev=Oi.stdev;fe.interp=Oi.interp;var Vn=wv();fe.init2dArray=Vn.init2dArray;fe.transposeRagged=Vn.transposeRagged;fe.dot=Vn.dot;fe.translationMatrix=Vn.translationMatrix;fe.rotationMatrix=Vn.rotationMatrix;fe.rotationXYMatrix=Vn.rotationXYMatrix;fe.apply3DTransform=Vn.apply3DTransform;fe.apply2DTransform=Vn.apply2DTransform;fe.apply2DTransform2=Vn.apply2DTransform2;fe.convertCssMatrix=Vn.convertCssMatrix;fe.inverseTransformMatrix=Vn.inverseTransformMatrix;var yi=p4();fe.deg2rad=yi.deg2rad;fe.rad2deg=yi.rad2deg;fe.angleDelta=yi.angleDelta;fe.angleDist=yi.angleDist;fe.isFullCircle=yi.isFullCircle;fe.isAngleInsideSector=yi.isAngleInsideSector;fe.isPtInsideSector=yi.isPtInsideSector;fe.pathArc=yi.pathArc;fe.pathSector=yi.pathSector;fe.pathAnnulus=yi.pathAnnulus;var xs=m4();fe.isLeftAnchor=xs.isLeftAnchor;fe.isCenterAnchor=xs.isCenterAnchor;fe.isRightAnchor=xs.isRightAnchor;fe.isTopAnchor=xs.isTopAnchor;fe.isMiddleAnchor=xs.isMiddleAnchor;fe.isBottomAnchor=xs.isBottomAnchor;var _s=b4();fe.segmentsIntersect=_s.segmentsIntersect;fe.segmentDistance=_s.segmentDistance;fe.getTextLocation=_s.getTextLocation;fe.clearLocationCache=_s.clearLocationCache;fe.getVisibleSegment=_s.getVisibleSegment;fe.findPointOnPath=_s.findPointOnPath;var Hv=Yt();fe.extendFlat=Hv.extendFlat;fe.extendDeep=Hv.extendDeep;fe.extendDeepAll=Hv.extendDeepAll;fe.extendDeepNoArrays=Hv.extendDeepNoArrays;var _p=ro();fe.log=_p.log;fe.warn=_p.warn;fe.error=_p.error;var ZO=cs();fe.counterRegex=ZO.counter;var wp=zv();fe.throttle=wp.throttle;fe.throttleDone=wp.done;fe.clearThrottle=wp.clear;var Wn=Gu();fe.getGraphDiv=Wn.getGraphDiv;fe.isPlotDiv=Wn.isPlotDiv;fe.removeElement=Wn.removeElement;fe.addStyleRule=Wn.addStyleRule;fe.addRelatedStyleRule=Wn.addRelatedStyleRule;fe.deleteRelatedStyleRule=Wn.deleteRelatedStyleRule;fe.setStyleOnHover=Wn.setStyleOnHover;fe.getFullTransformMatrix=Wn.getFullTransformMatrix;fe.getElementTransformMatrix=Wn.getElementTransformMatrix;fe.getElementAndAncestors=Wn.getElementAndAncestors;fe.equalDomRects=Wn.equalDomRects;fe.clearResponsive=w4();fe.preserveDrawingBuffer=A4();fe.makeTraceGroups=S4();fe._=L4();fe.notifier=$1();fe.filterUnique=D4();fe.filterVisible=P4();fe.pushUnique=rp();fe.increment=z4();fe.cleanNumber=F4();fe.ensureNumber=function(r){return U4(r)?(r=Number(r),r>V4||r=r?!1:U4(e)&&e>=0&&e%1===0};fe.noop=_v();fe.identity=cp();fe.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))};fe.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};fe.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?(fe.warn("randstr failed uniqueness"),l):e(r,t,a,(n||0)+1):l};fe.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};fe.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};fe.syncOrAsync=function(e,r,t){var a,n;function i(){return fe.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)};fe.stripTrailingSlash=function(e){return e.substr(-1)==="/"?e.substr(0,e.length-1):e};fe.noneOrAll=function(e,r,t){if(e){var a=!1,n=!0,i,l;for(i=0;i0?n:0})};fe.fillArray=function(e,r,t,a){if(a=a||fe.identity,fe.isArrayOrTypedArray(e))for(var n=0;n1?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};fe.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var J4=/^\w*$/;fe.templateString=function(e,r){var t={};return e.replace(fe.TEMPLATE_STRING_REGEX,function(a,n){var i;return J4.test(n)?i=r[n]:(t[n]=t[n]||fe.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var jO={max:10,count:0,name:"hovertemplate"};fe.hovertemplateString=function(){return Tp.apply(jO,arguments)};var eB={max:10,count:0,name:"texttemplate"};fe.texttemplateString=function(){return Tp.apply(eB,arguments)};var rB=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function tB(e){var r=e.match(rB);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var aB={max:10,count:0,name:"texttemplate",parseMultDiv:!0};fe.texttemplateStringForShapes=function(){return Tp.apply(aB,arguments)};var O4=/^[:|\|]/;function Tp(e,r,t){var a=this,n=arguments;return r||(r={}),e.replace(fe.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=tB(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<=B4,u=o>=Iv&&o<=B4;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;fe.seedPseudoRandom=function(){bs=2e9};fe.pseudoRandom=function(){var e=bs;return bs=(69069*bs+1)%4294967296,Math.abs(bs-e)<429496729?fe.pseudoRandom():bs/4294967296};fe.fillText=function(e,r,t){var a=Array.isArray(t)?function(l){t.push(l)}:function(l){t.text=l},n=fe.extractOption(e,r,"htx","hovertext");if(fe.isValidTextValue(n))return a(n);var i=fe.extractOption(e,r,"tx","text");if(fe.isValidTextValue(i))return a(i)};fe.isValidTextValue=function(e){return e||e===0};fe.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,fe.strTranslate(n-u*(t+l),i-u*(a+o))+fe.strScale(u)+(s?"rotate("+s+(r?"":" "+t+" "+a)+")":"")};fe.setTransormAndDisplay=function(e,r){e.attr("transform",fe.getTextTransform(r)),e.style("display",r.scale?null:"none")};fe.ensureUniformFontSize=function(e,r){var t=fe.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};fe.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)};fe.bigFont=function(e){return Math.round(1.2*e)};var Y4=fe.getFirefoxVersion(),nB=Y4!==null&&Y4<86;fe.getPositionFromD3Event=function(){return nB?[Qu.event.layerX,Qu.event.layerY]:[Qu.event.offsetX,Qu.event.offsetY]}});var j4=Z(()=>{"use strict";var iB=Ie(),Q4={"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 .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","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 Q4)$4=Mp.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),iB.addStyleRule($4,Q4[Mp]);var $4,Mp});var Ap=Z(($le,e6)=>{e6.exports=!0});var Sp=Z((jle,r6)=>{"use strict";var lB=Ap(),kp;typeof window.matchMedia=="function"?kp=!window.matchMedia("(hover: none)").matches:kp=lB;r6.exports=kp});var Yv=Z((eoe,Cp)=>{"use strict";var ws=typeof Reflect=="object"?Reflect:null,t6=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 oB(e){console&&console.warn&&console.warn(e)}var n6=Number.isNaN||function(r){return r!==r};function vt(){vt.init.call(this)}Cp.exports=vt;Cp.exports.once=cB;vt.EventEmitter=vt;vt.prototype._events=void 0;vt.prototype._eventsCount=0;vt.prototype._maxListeners=void 0;var a6=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 a6},set:function(e){if(typeof e!="number"||e<0||n6(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a6=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||n6(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 i6(e){return e._maxListeners===void 0?vt.defaultMaxListeners:e._maxListeners}vt.prototype.getMaxListeners=function(){return i6(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")t6(s,this,t);else for(var u=s.length,f=f6(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,oB(o)}return e}vt.prototype.addListener=function(r,t){return l6(this,r,t,!1)};vt.prototype.on=vt.prototype.addListener;vt.prototype.prependListener=function(r,t){return l6(this,r,t,!0)};function sB(){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 o6(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=sB.bind(a);return n.listener=t,a.wrapFn=n,n}vt.prototype.once=function(r,t){return Bv(t),this.on(r,o6(this,r,t)),this};vt.prototype.prependOnceListener=function(r,t){return Bv(t),this.prependListener(r,o6(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():uB(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 s6(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?fB(n):f6(n,n.length)}vt.prototype.listeners=function(r){return s6(this,r,!0)};vt.prototype.rawListeners=function(r){return s6(this,r,!1)};vt.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):u6.call(e,r)};vt.prototype.listenerCount=u6;function u6(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 f6(e,r){for(var t=new Array(r),a=0;a{"use strict";var Lp=Yv().EventEmitter,hB={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)},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 h6=Ie(),dB=eo().dfltConfig;function pB(e,r){for(var t=[],a,n=0;ndB.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";m6.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(Ut=>{"use strict";var _n=gr(),ju=Ie(),Gv=Gn(),Dp=ds(),mB=qp(),yB=Vu(),gB=eo().configAttributes,y6=pi(),Zn=ju.extendDeepAll,Ts=ju.isPlainObject,bB=ju.isArrayOrTypedArray,Vv=ju.nestedProperty,xB=ju.valObjectMeta,Ep="_isSubplotObj",Wv="_isLinkedToArray",_B="_arrayAttrRegexps",b6="_deprecated",Pp=[Ep,Wv,_B,b6];Ut.IS_SUBPLOT_OBJ=Ep;Ut.IS_LINKED_TO_ARRAY=Wv;Ut.DEPRECATED=b6;Ut.UNDERSCORE_ATTRS=Pp;Ut.get=function(){var e={};return _n.allTypes.forEach(function(r){e[r]=TB(r)}),{defs:{valObjects:xB,metaKeys:Pp.concat(["description","role","editType","impliedEdits"]),editType:{traces:y6.traces,layout:y6.layout},impliedEdits:{}},traces:e,layout:MB(),frames:AB(),animation:Ms(yB),config:Ms(gB)}};Ut.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),!Ut.isValObject(l)&&Ts(l)&&i!=="impliedEdits"&&Ut.crawl(l,r,n+1,o)}})};Ut.isValObject=function(e){return e&&e.valType!==void 0};Ut.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)bB(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 TB(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);Ut.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||Ut.crawl(l,function(s){Ut.isValObject(s)&&"anim"in s&&delete s.anim}),l}function MB(){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(),qB=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,{},qB,"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[w6(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(!_6(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 da=Z((loe,T6)=>{"use strict";var ef=cs().counter;T6.exports={idRegex:{x:ef("x","( domain)?"),y:ef("y","( domain)?")},attrRegex:ef("[xy]axis"),xAxisMatch:ef("xaxis"),yAxisMatch:ef("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 Xt=Z(Xa=>{"use strict";var DB=gr(),zp=da();Xa.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}};Xa.name2id=function(r){if(r.match(zp.AX_NAME_PATTERN)){var t=r.substr(5);return t==="1"&&(t=""),r.charAt(0)+t}};Xa.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":"")}};Xa.list=function(e,r,t){var a=e._fullLayout;if(!a)return[];var n=Xa.listIds(e,r),i=new Array(n.length),l;for(l=0;la?1:-1:+(e.substr(1)||1)-+(r.substr(1)||1)};Xa.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function M6(e,r){if(r&&r.length){for(var t=0;t{"use strict";function EB(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function PB(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}A6.exports={clearOutlineControllers:EB,clearOutline:PB}});var Zv=Z((uoe,k6)=>{"use strict";k6.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=gr(),foe=da().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 RB=gr(),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){S6(e,l,n.cache),n.check=function(){if(i){var f=S6(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 Pt=Z((hoe,G6)=>{"use strict";var F6=Ir(),NB=os().timeFormatLocale,FB=B1().formatLocale,rf=Hr(),IB=Y1(),Xr=gr(),I6=As(),HB=ct(),fr=Ie(),H6=Er(),D6=Bt().BADNUM,Ja=Xt(),OB=pl().clearOutline,BB=Zv(),Ip=Vu(),YB=qp(),UB=Np().getModuleCalcData,E6=fr.relinkPrivateKeys,so=fr._,$e=G6.exports={};fr.extendFlat($e,Xr);$e.attributes=Gn();$e.attributes.type.values=$e.allTypes;$e.fontAttrs=ha();$e.layoutAttributes=ds();var Qv=q6();$e.executeAPICommand=Qv.executeAPICommand;$e.computeAPICommandBindings=Qv.computeAPICommandBindings;$e.manageCommandObserver=Qv.manageCommandObserver;$e.hasSimpleAPICommandBindings=Qv.hasSimpleAPICommandBindings;$e.redrawText=function(e){return e=fr.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(Xr.getComponentMethod("annotations","draw")(e),Xr.getComponentMethod("legend","draw")(e),Xr.getComponentMethod("colorbar","draw")(e),r($e.previousPromises(e)))},300)})};$e.resize=function(e){e=fr.getGraphDiv(e);var r,t=new Promise(function(a,n){(!e||fr.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||fr.isHidden(e)){a(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,Xr.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=fr.ensureSingle(r._paper,"text","js-plot-link-container",function(s){s.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:H6.defaultLine,"pointer-events":"all"}).each(function(){var u=F6.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&&GB(e,i),l.text(i.text()&&o.text()?" - ":"")}};function GB(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=F6.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 VB=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],WB=["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=P6(e,VB);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=JB(h,n.separators),n._extraFormat=P6(e,WB),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var T=n._subplots=XB(),b=n._splomAxes={x:{},y:{}},A=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=ZB(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(Xr.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&&OB({_fullLayout:a}),KB(o,n),E6(n,a),Xr.getComponentMethod("colorscale","crossTraceDefaults")(o,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var J=n._tracePreGUI,Y={},H;for(H in J)Y[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=Xr.componentsRegistry,i=r._basePlotModules,l,o,s,u=Xr.subplotsRegistry.cartesian;for(l in n)s=n[l],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(u),r._has("cartesian")&&(Xr.getComponentMethod("grid","contentDefaults")(e,r),u.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(fr.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 $B(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=Ja.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={}),O6(r);var n=r._size,i=r.margin,l={t:0,b:0,l:0,r:0},o=fr.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"&&rf(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,Y=a-l.t-l.b;for(var H in h){if(rf(I)&&h[H].r){var G=h[H].r.val,Q=h[H].r.size;if(G>F){var K=(I*G+(Q-J)*F)/(G-F),ie=(Q*(1-F)+(I-J)*(1-G))/(G-F);K+ie>s+u&&(s=K,u=ie)}}if(rf(X)&&h[H].t){var de=h[H].t.val,pe=h[H].t.size;if(de>O){var Ae=(X*de+(pe-Y)*O)/(de-O),ee=(pe*(1-O)+(X-Y)*(1-de))/(de-O);Ae+ee>v+f&&(v=Ae,f=ee)}}}}}var ke=fr.constrain(t-i.l-i.r,B6,m),ve=fr.constrain(a-i.t-i.b,Y6,g),be=Math.max(0,t-ke),se=Math.max(0,a-ve);if(be){var ge=(s+u)/be;ge>1&&(s/=ge,u/=ge)}if(se){var B=(v+f)/se;B>1&&(v/=B,f/=B)}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)||$B(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var re=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(fr.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&&!fr.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),_=fr.isTypedArray(h);if((y||_)&&h.dtype&&h.shape){var w=h.bdata;return u({dtype:h.dtype,shape:h.shape,bdata:fr.isArrayBuffer(w)?IB.encode(w):w},d)}return y?h.map(function(T){return u(T,d)}):_?fr.simpleMap(h,fr.identity):fr.isJSDate(h)?fr.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 Xr.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 Xr.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=fr.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}$e.doCalcdata=function(e,r){var t=Ja.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:D6,y:D6}]),b[0].t||(b[0].t={}),b[0].trace=i,u[w]=b}}for(z6(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 Da=Z((poe,V6)=>{"use strict";V6.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 xa=Z(wn=>{"use strict";var Rt=Ir(),Yi=Ie(),tY=Yi.strTranslate,Hp=fo(),aY=Da().LINE_SPACING,nY=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;wn.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&typeof MathJax!="undefined"&&a.match(nY),i=Rt.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=yY(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};sY(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]+")"+tY(-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 iY=/(<|<|<)/g,lY=/(>|>|>)/g;function oY(e){return e.replace(iY,"\\lt ").replace(lY,"\\gt ")}var W6=[["$","$"],["\\(","\\)"]];function sY(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:W6},displayAlign:"left"})},u=function(){i=Yi.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=W6},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=Rt.select("body").append("div").attr({id:w}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"}).text(oY(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=Rt.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 K6={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"},uY={sub:"0.3em",sup:"-0.6em"},fY={sub:"-0.21em",sup:"0.42em"},Z6="\u200B",X6=["http:","https:","mailto:","",void 0,":"],Q6=wn.NEWLINES=/(\r\n?|\n)/g,Bp=/(<[^<>]*>)/,Yp=/<(\/?)([^ >]*)(\s+(.*))?>/i,cY=/
/i;wn.BR_TAG_ALL=/
/gi;var $6=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,j6=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,e7=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,vY=/(^|[\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 hY=/(^|;)\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 dY={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},pY=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function $v(e){return e.replace(pY,function(r,t){var a;return t.charAt(0)==="#"?a=mY(t.charAt(1)==="x"?parseInt(t.substr(2),16):parseInt(t.substr(1),10)):a=dY[t],a||r})}wn.convertEntities=$v;function mY(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 yY(e,r){r=r.replace(Q6," ");var t=!1,a=[],n,i=-1;function l(){i++;var C=document.createElementNS(Hp.svg,"tspan");Rt.select(C).attr({class:"line",dy:i*aY+"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=cY.test(r);f?l():(n=e,a=[{node:e}]);for(var v=r.split(Bp),h=0;h{"use strict";var gY=Ir(),e0=bn(),af=Hr(),jv=Ie(),t7=Er(),bY=$l().isValid;function xY(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 s7(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 f7=lp(),wY=f7.FORMAT_LINK,TY=f7.DATE_FORMAT_LINK;function MY(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?Up:c7)("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: "+wY+"."].join(" ")}function c7(e,r){return Up(e,r)+[" And for dates see: "+TY+".","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(" ")}v7.exports={axisHoverFormat:MY,descriptionOnlyNumbers:Up,descriptionWithDates:c7}});var Xn=Z((boe,L7)=>{"use strict";var h7=ha(),Cs=hi(),C7=mi().dash,Vp=Yt().extendFlat,d7=ct().templatedArray,p7=r0().descriptionWithDates,AY=Bt().ONEDAY,gi=da(),kY=gi.HOUR_PATTERN,SY=gi.WEEKDAY_PATTERN,Gp={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},CY=Vp({},Gp,{values:Gp.values.slice().concat(["sync"])});function m7(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var y7={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},g7={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},b7={valType:"data_array",editType:"ticks"},x7={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function _7(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function w7(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var T7={valType:"color",dflt:Cs.defaultLine,editType:"ticks"},M7={valType:"color",dflt:Cs.lightLine,editType:"ticks"};function A7(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var k7=Vp({},C7,{editType:"ticks"}),S7={valType:"boolean",editType:"ticks"};L7.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:Cs.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:h7({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"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[gi.idRegex.x.toString(),gi.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:[gi.idRegex.x.toString(),gi.idRegex.y.toString()],editType:"calc"},rangebreaks:d7("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:[SY,kY,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:AY},editType:"calc"}),tickmode:CY,nticks:m7(),tick0:y7,dtick:g7,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:b7,ticktext:{valType:"data_array",editType:"ticks"},ticks:x7,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:_7(),tickwidth:w7(),tickcolor:T7,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({},C7,{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:h7({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:p7("tick label")},tickformatstops:d7("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:p7("hover text")},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:S7,gridcolor:M7,gridwidth:A7(),griddash:k7,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",gi.idRegex.x.toString(),gi.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",gi.idRegex.x.toString(),gi.idRegex.y.toString()],editType:"plot"},minor:{tickmode:Gp,nticks:m7("minor"),tick0:y7,dtick:g7,tickvals:b7,ticks:x7,ticklen:_7("minor"),tickwidth:w7("minor"),tickcolor:T7,gridcolor:M7,gridwidth:A7("minor"),griddash:k7,showgrid:S7,editType:"ticks"},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((xoe,E7)=>{"use strict";var ht=Xn(),q7=ha(),D7=Yt().extendFlat,LY=pi().overrideAll;E7.exports=LY({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:D7({},ht.ticks,{dflt:""}),ticklabeloverflow:D7({},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:q7({}),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:q7({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var nf=Z((woe,R7)=>{"use strict";var qY=t0(),DY=cs().counter,EY=dp(),P7=$l().scales,_oe=EY(P7);function a0(e){return"`"+e+"`"}R7.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"?P7[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=qY),t.noColorAxis||(k.coloraxis={valType:"subplotid",regex:DY("coloraxis"),dflt:null,editType:"calc"}),k}});var Zp=Z((Toe,z7)=>{"use strict";var PY=Yt().extendFlat,RY=nf(),Wp=$l().scales;z7.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:PY({_isSubplotObj:!0,editType:"calc"},RY("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var Xp=Z((Moe,N7)=>{"use strict";var zY=Ie();N7.exports=function(r){return zY.isPlainObject(r.colorbar)}});var Qp=Z(Kp=>{"use strict";var Jp=Hr(),F7=Ie(),I7=Bt(),NY=I7.ONEDAY,FY=I7.ONEWEEK;Kp.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?NY: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 F7.cleanDate(e,F7.dateTick0(t,a%FY===0?1:0));if(!(a==="D1"||a==="D2"))return Jp(e)?Number(e):0}});var $p=Z((koe,O7)=>{"use strict";var H7=Qp(),IY=Ie().isArrayOrTypedArray,HY=an().isTypedArraySpec,OY=an().decodeTypedArraySpec;O7.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 HY(T)&&(T=OY(T)),T!==void 0?T:(s._template||{})[w]}var v=f("tick0"),h=f("dtick"),d=f("tickvals"),m=IY(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=H7.dtick(h,n);s.tick0=H7.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((Soe,Y7)=>{"use strict";var jp=Ie(),B7=Xn();Y7.exports=function(r,t,a,n){var i=n.isMinor,l=i?r.minor||{}:r,o=i?t.minor:t,s=i?B7.minor:B7,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((Coe,U7)=>{"use strict";U7.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((Loe,G7)=>{"use strict";var n0=Ie(),BY=ct();G7.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=BY.arrayTemplater(t,n,i),f,v;for(f=0;f{"use strict";var tm=Ie(),YY=Er().contrast,V7=Xn(),UY=rm(),GY=Jn();W7.exports=function(r,t,a,n,i){i||(i={});var l=a("labelalias");tm.isPlainObject(l)||delete t.labelalias;var o=UY(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?YY(i.bgColor):f&&f!==V7.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");GY(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:VY}),t.tickformatstops.length||delete t.tickformatstops,!i.noExp&&!m&&n!=="date"&&(a("showexponent",o),a("exponentformat"),a("minexponent"),a("separatethousands"))}}};function VY(e,r){function t(n,i){return tm.coerce(e,r,V7.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var nm=Z((Doe,Z7)=>{"use strict";var WY=rm();Z7.exports=function(r,t,a,n,i){i||(i={});var l=i.tickSuffixDflt,o=WY(r),s=a("tickprefix");s&&a("showtickprefix",o);var u=a("ticksuffix",l);u&&a("showticksuffix",o)}});var im=Z((Eoe,X7)=>{"use strict";var ml=Ie(),ZY=ct(),XY=$p(),JY=em(),KY=am(),QY=nm(),$Y=t0();X7.exports=function(r,t,a){var n=ZY.newContainer(t,"colorbar"),i=r.colorbar||{};function l(z,F){return ml.coerce(i,n,$Y,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"),XY(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"),QY(i,n,l,"linear",q),KY(i,n,l,"linear",q),JY(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((Poe,Q7)=>{"use strict";var J7=Hr(),om=Ie(),jY=Xp(),eU=im(),K7=$l().isValid,rU=gr().traceIs;function lm(e,r){var t=r.slice(0,r.length-1);return r?om.nestedProperty(e,t).get()||{}:e}Q7.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=rU(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=J7(_)&&J7(w)&&_{"use strict";var $7=Ie(),tU=ct(),j7=Zp(),aU=Ls();e9.exports=function(r,t){function a(v,h){return $7.coerce(r,t,j7,v,h)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,l;function o(v,h){return $7.coerce(i,l,j7.coloraxis,v,h)}for(var s in n){var u=n[s];if(u[0])i=r[s]||{},l=tU.newContainer(t,s,"coloraxis"),l._name=s,aU(i,l,t,o,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var nU=Ie(),iU=Tn().hasColorscale,lU=Tn().extractOpts;t9.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?nU.nestedProperty(f,v.container).get():f;if(h)if(h.coloraxis)h._colorAx=t[h.coloraxis];else{var d=lU(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 n9=Hr(),sm=Ie(),oU=Tn().extractOpts;i9.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,l=a.containerStr,o=l?sm.nestedProperty(t,l).get():t,s=oU(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&&n9(f)?f=Math.min(f,d()):f=d()),v===void 0?v=m():u&&(o._colorAx&&n9(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((Foe,l9)=>{"use strict";var l0=$l(),qs=Tn();l9.exports={moduleType:"component",name:"colorscale",attributes:nf(),layoutAttributes:Zp(),supplyLayoutDefaults:r9(),handleDefaults:Ls(),crossTraceDefaults:a9(),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 ln=Z((Ioe,s9)=>{"use strict";var o9=Ie(),sU=an().isTypedArraySpec;s9.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 o9.isPlainObject(r)&&(o9.isArrayOrTypedArray(r.size)||sU(r.size))}}});var f9=Z((Hoe,u9)=>{"use strict";var uU=Hr();u9.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 uU(s)&&s>0?Math.max(s,i):0}}});var bi=Z(_a=>{"use strict";var c9=Ie();_a.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};_a.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],a=e.yaxes||[],n=0;n=0&&t.index{d9.exports=dU;var fm={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},hU=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function dU(e){var r=[];return e.replace(hU,function(t,a,n){var i=a.toLowerCase();for(n=mU(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 yU=cm(),Je=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},Ar="M0,0Z",p9=Math.sqrt(2),yl=Math.sqrt(3),vm=Math.PI,hm=Math.cos,dm=Math.sin;x9.exports={circle:{n:0,f:function(e,r,t){if(kr(r))return Ar;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?Sr(r,t,n):n}},square:{n:1,f:function(e,r,t){if(kr(r))return Ar;var a=Je(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=Je(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=Je(e*.4,2),n=Je(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=Je(e*.8/p9,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=Je(e*2/yl,2),n=Je(e/2,2),i=Je(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=Je(e*2/yl,2),n=Je(e/2,2),i=Je(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=Je(e*2/yl,2),n=Je(e/2,2),i=Je(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=Je(e*2/yl,2),n=Je(e/2,2),i=Je(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=Je(e*.6,2),n=Je(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=Je(e*.6,2),n=Je(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=Je(e*.6,2),n=Je(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=Je(e*.6,2),n=Je(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=Je(e*.951,2),n=Je(e*.588,2),i=Je(-e,2),l=Je(e*-.309,2),o=Je(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=Je(e,2),n=Je(e/2,2),i=Je(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=Je(e,2),n=Je(e/2,2),i=Je(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=Je(e*.924,2),n=Je(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=Je(a*.225,2),i=Je(a*.951,2),l=Je(a*.363,2),o=Je(a*.588,2),s=Je(-a,2),u=Je(a*-.309,2),f=Je(a*.118,2),v=Je(a*.809,2),h=Je(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=Je(e*.66,2),n=Je(e*.38,2),i=Je(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=Je(e*yl*.8,2),n=Je(e*.8,2),i=Je(e*1.6,2),l=Je(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=Je(e*yl*.8,2),n=Je(e*.8,2),i=Je(e*1.6,2),l=Je(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=Je(e*1.1,2),n=Je(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=Je(e*1.4,2),n=Je(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=Je(e*.7,2),n=Je(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=Je(e*1.4,2),n=Je(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=Je(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=Je(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=Je(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=Je(e,2),n=Je(e/p9,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=Je(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=Je(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=Je(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=Je(e*1.3,2),n=Je(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=Je(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=Je(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=Je(e*1.2,2),n=Je(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=Je(e/2,2),n=Je(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=Je(e*1.2,2),n=Je(e*1.6,2),i=Je(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=Je(e*1.2,2),n=Je(e*1.6,2),i=Je(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=Je(e*1.2,2),n=Je(e*1.6,2),i=Je(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=Je(e*1.2,2),n=Je(e*1.6,2),i=Je(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=Je(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=Je(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=Je(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=Je(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=Je(e,2),n=Je(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=Je(e,2),n=Je(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=Je(e*2,2),n=Je(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=Je(e*2,2),n=Je(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=Je(e,2),n=Je(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=Je(e,2),n=Je(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=Je(e*2,2),n=Je(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=Je(e*2,2),n=Je(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 m9,y9,g9,b9;function Sr(e,r,t){if((!e||e%360===0)&&!r)return t;if(g9===e&&b9===r&&m9===t)return y9;g9=e,b9=r,m9=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=yU(t),s="",u=0;u{"use strict";var Jt=Ir(),tt=Ie(),gU=tt.numberFormat,mo=Hr(),xm=bn(),s0=gr(),pa=Er(),bU=um(),of=tt.strTranslate,u0=xa(),xU=fo(),_U=Da(),wU=_U.LINE_SPACING,D9=bv().DESELECTDIM,TU=ln(),MU=f9(),AU=bi().appendArrayPointValue,er=B9.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(pa.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(SU(f))),s&&e.style("text-shadow",s==="auto"?u0.makeTextShadow(pa.contrast(i)):pm(s)),u&&e.style("text-decoration-line",pm(CU(u)))};function pm(e){return e==="none"?void 0:e}var kU={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function SU(e){return kU[e]}function CU(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",of(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=s0.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||"";pa.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(pa.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 E9(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,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(z9,t,g,"linear",i.colorscale,"fill",y,_,!0,!1)}else m==="horizontal"&&(m=m+"reversed"),e.call(er.gradient,t,g,m,i.colorscale,"fill")}else r.fillcolor&&e.call(pa.fill,r.fillcolor)}er.singleFillStyle=function(e,r){var t=Jt.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};E9(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&&E9(n,a[0].trace,r,t)})};var w9=_9();er.symbolNames=[];er.symbolFuncs=[];er.symbolBackOffs=[];er.symbolNeedLines={};er.symbolNoDot={};er.symbolNoFill={};er.symbolList=[];Object.keys(w9).forEach(function(e){var r=w9[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 LU=er.symbolNames.length,qU="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>=LU||e>=400?0:Math.floor(Math.max(e,0))};function P9(e,r,t,a){var n=e%100;return er.symbolFuncs[n](r,t,a)+(e>=200?qU:"")}var T9=gU("~f"),R9={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=R9[a];return z9(e,r,t,l.type,n,i,l.start,l.stop,!1,l.reversed)};function z9(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=Tm(e,t),v=wm(e,t);r.attr("d",P9(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=pa.defaultLine:m=o.color,tt.isArrayOrTypedArray(l.color)&&(d=pa.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(pa.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],R9[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 X=t.uid;q&&(X+="-"+e.i),er.pattern(r,"point",n,X,A,I,O,e.mcc,T.fillmode,z,R,F)}else tt.isArrayOrTypedArray(d)?pa.fill(r,d[e.i]):pa.fill(r,d);g&&pa.stroke(r,m)}};er.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=er.tryColorscale(t,""),r.lineScale=er.tryColorscale(t,"line"),s0.traceIs(e,"symbols")&&(r.ms2mrc=TU.isBubble(e)?MU(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:D9*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};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:pa.addOpacity(v,D9))},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){pa.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",P9(er.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}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={};AU(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=F9(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:g,color:y}).text(u).call(u0.convertToTspans,t).call(N9,m,g,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=F9(a,r);pa.fill(n,i);var s=s0.traceIs(r,"bar-like");N9(n,l,o,a.mrc2||a.mrc,s)})}};var M9=.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=O9;er.makeTester=function(){var e=tt.ensureSingleById(Jt.select("body"),"svg","js-plotly-tester",function(t){t.attr(xU.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 ym=0,PU=1e4;er.bBox=function(e,r,t){t||(t=A9(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=A9(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(u0.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 ym>=PU&&(er.savedBBoxes={},ym=0),t&&(er.savedBBoxes[t]=d),ym++,tt.extendFlat({},d)};function A9(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",_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+")"}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+=of(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 RU=/\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(RU,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var zU=/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(zU);r===1&&t===1?a=[]:a=[of(l,o),"scale("+r+","+t+")",of(-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}er.getMarkerStandoff=wm;var lf=Math.atan2,vo=Math.cos,Es=Math.sin;function k9(e,r){var t=r[0],a=r[1];return[t*vo(e)-a*Es(e),t*Es(e)+a*vo(e)]}var S9,C9,L9,q9,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=lf(h[1]-n,h[0]-a),m=lf(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=S9/180*Math.PI,T=C9/180*Math.PI,b=w-y,A=vo(T)*Es(b),C=Es(T)*vo(_)-vo(T)*Es(_)*vo(b);g=-lf(A,C)-Math.PI,S9=u,C9=f}var k=k9(d,[vo(g),0]),q=k9(m,[Es(g),0]);t=lf(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-L9,R=n-q9,z=r.line&&r.line.shape||"",F=z.slice(z.length-1);F==="h"&&(R=0),F==="v"&&(D=0),t+=lf(R,D)/Math.PI*180+90}else t=null}return L9=a,q9=n,gm=e.i,bm=r.uid,t}er.getMarkerAngle=Tm});var sf=Z((Goe,V9)=>{"use strict";var Ps=Ir(),NU=Hr(),FU=Pt(),Mm=gr(),yo=Ie(),Y9=yo.strTranslate,f0=at(),c0=Er(),Rs=xa(),U9=bv(),IU=Da().OPPOSITE_SIDE,G9=/ [XY][0-9]* /,Am=1.6,km=1.6;function HU(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,Y=I.font,H=Y.family,G=Y.size,Q=Y.color,K=Y.weight,ie=Y.style,de=Y.variant,pe=Y.textcase,Ae=Y.lineposition,ee=Y.shadow,ke;i==="title.text"?ke="titleText":i.indexOf("axis")!==-1?ke="axisTitleText":i.indexOf(!0)&&(ke="colorbarTitleText");var ve=e._context.edits[ke];function be(Ye,Ze){return Ye===void 0||Ze===void 0?!1:Ye.replace(G9," % ")===Ze.replace(G9," % ")}m===""?h=0:be(m,l)&&(ve||(m=""),h=.2,g=!0),z&&(O===""?J=0:be(O,F)&&(ve||(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||ve,ge;v||(v=yo.ensureSingle(a._infolayer,"g","g-"+r),ge=a._hColorbarMoveTitle);var B=v.selectAll("text."+r).data(se?[0]:[]);B.enter().append("text"),B.text(m).attr("class",r),B.exit().remove();var re=null,U=r+"-subtitle",me=O||ve;if(z&&me&&(re=v.selectAll("text."+U).data(me?[0]:[]),re.enter().append("text"),re.text(O).attr("class",U),re.exit().remove()),!se)return v;function we(Ye,Ze){yo.syncOrAsync([ye,Re],{title:Ye,subtitle:Ze})}function ye(Ye){var Ze=Ye.title,Pe=Ye.subtitle,Be;!f&&ge&&(f={}),f?(Be="",f.rotate&&(Be+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||ge)&&(Be+=Y9(0,(f.offset||0)-(ge||0)))):Be=null,Ze.attr("transform",Be);function Oe(De){if(De){var Le=Ps.select(De.node().parentNode).select("."+U);if(!Le.empty()){var Ue=De.node().getBBox();if(Ue.height){var Xe=Ue.y+Ue.height+Am*G;Le.attr("y",Xe)}}}}if(Ze.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),Pe){var ne=v.select("."+r+"-math-group"),Me=Ze.node().getBBox(),Ce=ne.node()?ne.node().getBBox():void 0,sr=Ce?Ce.y+Ce.height+Am*G:Me.y+Me.height+km*G,tr=yo.extendFlat({},u,{y:sr});Pe.attr("transform",Be),Pe.style("opacity",J*c0.opacity(Q)).call(f0.font,{color:c0.rgb(Q),size:Ps.round(G,2),family:H,weight:K,style:ie,variant:de,textcase:pe,shadow:ee,lineposition:Ae}).attr(tr).call(Rs.convertToTspans,e)}return FU.previousPromises(e)}function Re(Ye){var Ze=Ye.title,Pe=Ps.select(Ze.node().parentNode);if(s&&s.selection&&s.side&&m){Pe.attr("transform",null);var Be=IU[s.side],Oe=s.side==="left"||s.side==="top"?-1:1,ne=NU(s.pad)?s.pad:2,Me=f0.bBox(Pe.node()),Ce={t:0,b:0,l:0,r:0},sr=e._fullLayout._reservedMargin;for(var tr in sr)for(var De in sr[tr]){var Le=sr[tr][De];Ce[De]=Math.max(Ce[De],Le)}var Ue={left:Ce.l,top:Ce.t,right:a.width-Ce.r,bottom:a.height-Ce.b},Xe=s.maxShift||Oe*(Ue[s.side]-Me[s.side]),Ge=0;if(Xe<0)Ge=Xe;else{var He=s.offsetLeft||0,Ke=s.offsetTop||0;Me.left-=He,Me.right-=He,Me.top-=Ke,Me.bottom-=Ke,s.selection.each(function(){var lr=f0.bBox(this);yo.bBoxIntersect(Me,lr,ne)&&(Ge=Math.max(Ge,Oe*(lr[s.side]-Me[Be])+ne))}),Ge=Math.min(Xe,Ge),n._titleScoot=Math.abs(Ge)}if(Ge>0||Xe<0){var cr={left:[-Ge,0],right:[Ge,0],top:[0,-Ge],bottom:[0,Ge]}[s.side];Pe.attr("transform",Y9(cr[0],cr[1]))}}}B.call(we,re);function Fe(Ye,Ze){Ye.text(Ze).on("mouseover.opacity",function(){Ps.select(this).transition().duration(U9.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){Ps.select(this).transition().duration(U9.HIDE_PLACEHOLDER).style("opacity",0)})}if(ve&&(m?B.on(".opacity",null):(Fe(B,l),g=!0),B.call(Rs.makeEditable,{gd:e}).on("edit",function(Ye){o!==void 0?Mm.call("_guiRestyle",e,i,Ye,o):Mm.call("_guiRelayout",e,i,Ye)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(we)}).on("input",function(Ye){this.text(Ye||" ").call(Rs.positionText,u.x,u.y)}),z)){if(z&&!m){var Ee=B.node().getBBox(),ze=Ee.y+Ee.height+km*G;re.attr("y",ze)}O?re.on(".opacity",null):(Fe(re,F),X=!0),re.call(Rs.makeEditable,{gd:e}).on("edit",function(Ye){Mm.call("_guiRelayout",e,"title.subtitle.text",Ye)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(we)}).on("input",function(Ye){this.text(Ye||" ").call(Rs.positionText,re.attr("x"),re.attr("y"))})}return B.classed("js-placeholder",g),re&&re.classed("js-placeholder",X),v}V9.exports={draw:HU,SUBTITLE_PADDING_EM:km,SUBTITLE_PADDING_MATHJAX_EM:Am}});var b0=Z((Voe,K9)=>{"use strict";var OU=Ir(),BU=os().utcFormat,it=Ie(),YU=it.numberFormat,xi=Hr(),gl=it.cleanNumber,UU=it.ms2DateTime,W9=it.dateTime2ms,_i=it.ensureNumber,Z9=it.isArrayOrTypedArray,bl=Bt(),v0=bl.FP_SAFE,Kn=bl.BADNUM,GU=bl.LOG_CLIP,VU=bl.ONEWEEK,h0=bl.ONEDAY,d0=bl.ONEHOUR,X9=bl.ONEMIN,J9=bl.ONESEC,p0=Xt(),g0=da(),m0=g0.HOUR_PATTERN,y0=g0.WEEKDAY_PATTERN;function uf(e){return Math.pow(10,e)}function Sm(e){return e!=null}K9.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*GU*Math.abs(C-k))}else return Kn}function l(b,A,C,k){if((k||{}).msUTC&&xi(b))return+b;var q=W9(b,C||r.calendar);if(q===Kn)if(xi(b)){b=+b;var D=Math.floor(it.mod(b+.05,1)*10),R=Math.round(b-D/10);q=W9(new Date(R))+D/10}else return Kn;return q}function o(b,A,C){return UU(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:_i,r.l2c=r.type==="log"?uf:_i,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 uf(_(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=_i,r.d2p=r.r2p=function(b){return r.l2p(gl(b))},r.p2d=r.p2r=_,r.cleanPos=_i):r.type==="log"?(r.d2r=r.d2l=function(b,A){return i(gl(b),A)},r.r2d=r.r2c=function(b){return uf(gl(b))},r.d2c=r.r2l=gl,r.c2d=r.l2r=_i,r.c2r=i,r.l2d=uf,r.d2p=function(b,A){return r.l2p(r.d2r(b,A))},r.p2d=function(b){return uf(_(b))},r.r2p=function(b){return r.l2p(gl(b))},r.p2r=_,r.cleanPos=_i):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=_i,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:_i(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=_i,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:_i(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(!xi(C[k]))if(!(D||R)&&xi(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=ee.min&&(ieee.max&&(ee.max=de),pe=!1)}pe&&R.push({min:ie,max:de})}};for(C=0;C{"use strict";var Q9=Hr(),Cm=Ie(),WU=Bt().BADNUM,x0=Cm.isArrayOrTypedArray,ZU=Cm.isDateTime,XU=Cm.cleanNumber,$9=Math.round;e8.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 j9(e){return Math.max(1,(e-1)/1e3)}function $U(e,r){for(var t=e.length,a=j9(t),n=0,i=0,l={},o=0;on*2}function jU(e){return x0(e[0])&&x0(e[1])}});var ff=Z((Zoe,s8)=>{"use strict";var eG=Ir(),n8=Hr(),xl=Ie(),_0=Bt().FP_SAFE,rG=gr(),tG=at(),i8=Xt(),aG=i8.getFromId,nG=i8.isLinked;s8.exports={applyAutorangeOptions:o8,getAutoRange:qm,makePadFn:Dm,doAutoRange:lG,findExtremes:oG,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(Y,H){return Math.max(Y,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-r8(r,C.val,k.val))/(T-l(q)-o(D)),n=[q.val-A*l(q),D.val+A*o(D)];return n=o8(n,r),r.limitRange&&r.limitRange(),m&&n.reverse(),xl.simpleMap(n,r.l2r||Number)}function r8(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],n8(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){l8(e,r,t,a,sG)}function Pm(e,r,t,a){l8(e,r,t,a,uG)}function l8(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 a8(e){return n8(e)&&Math.abs(e)<_0}function sG(e,r){return e<=r}function uG(e,r){return e>=r}function fG(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 cG(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=fG(t,r),a=cG(a,r),[t,a]}});var dt=Z((Xoe,q8)=>{"use strict";var Mn=Ir(),zt=Hr(),zs=Pt(),vf=gr(),br=Ie(),Ns=br.strTranslate,go=xa(),vG=sf(),hf=Er(),on=at(),hG=Xn(),u8=Qp(),ma=Bt(),dG=ma.ONEMAXYEAR,A0=ma.ONEAVGYEAR,k0=ma.ONEMINYEAR,pG=ma.ONEMAXQUARTER,Im=ma.ONEAVGQUARTER,S0=ma.ONEMINQUARTER,mG=ma.ONEMAXMONTH,Fs=ma.ONEAVGMONTH,C0=ma.ONEMINMONTH,sn=ma.ONEWEEK,Ea=ma.ONEDAY,_l=Ea/2,Ti=ma.ONEHOUR,df=ma.ONEMIN,L0=ma.ONESEC,yG=ma.ONEMILLI,gG=ma.ONEMICROSEC,bo=ma.MINUS_SIGN,E0=ma.BADNUM,Hm={K:"zeroline"},Om={K:"gridline",L:"path"},Bm={K:"minor-gridline",L:"path"},x8={K:"tick",L:"path"},f8={K:"tick",L:"text"},c8={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=Da(),cf=P0.MID_SHIFT,xo=P0.CAP_SHIFT,pf=P0.LINE_SPACING,bG=P0.OPPOSITE_SIDE,q0=3,We=q8.exports={};We.setConvert=b0();var xG=Lm(),Ui=Xt(),_G=Ui.idSort,wG=Ui.isLinked;We.id2name=Ui.id2name;We.name2id=Ui.name2id;We.cleanId=Ui.cleanId;We.list=Ui.list;We.listIds=Ui.listIds;We.getFromId=Ui.getFromId;We.getFromTrace=Ui.getFromTrace;var _8=ff();We.getAutoRange=_8.getAutoRange;We.findExtremes=_8.findExtremes;var TG=1e-4;function Vm(e){var r=(e[1]-e[0])*TG;return[e[0]-r,e[1]+r]}We.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)};We.getRefType=function(e){return e===void 0?e:e==="paper"?"paper":e==="pixel"?"pixel":/( domain)$/.test(e)?"domain":"range"};We.coercePosition=function(e,r,t,a,n,i){var l,o,s=We.getRefType(a);if(s!=="range")l=br.ensureNumber,o=t(n,i);else{var u=We.getFromId(r,a);i=u.fraction2r(i),o=t(n,i),l=u.cleanPos}e[n]=l(o)};We.cleanPosition=function(e,r,t){var a=t==="paper"||t==="pixel"?br.ensureNumber:We.getFromId(r,t).cleanPos;return a(e)};We.redrawComponents=function(e,r){r=r||We.listIds(e);var t=e._fullLayout;function a(n,i,l,o){for(var s=vf.getComponentMethod(n,i),u={},f=0;f2e-6||((t-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};We.saveRangeInitial=function(e,r){for(var t=We.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=We.tickIncrement(e,"M6","reverse")+Ea*1.5:i.exactMonths>l?e=We.tickIncrement(e,"M1","reverse")+Ea*15.5:e-=_l;var s=We.tickIncrement(e,t);if(s<=a)return s}return e}We.prepMinorTicks=function(e,r,t){if(!r.minor.dtick){delete e.dtick;var a=r.dtick&&zt(r._tmin),n;if(a){var i=We.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,We.prepTicks(e,t),a){var o=zt(r.dtick),s=zt(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*sn&&f===2*Ea&&(e.dtick=sn):u===2*sn&&f===3*Ea?e.dtick=sn:u===sn&&!(r._input.minor||{}).nticks?e.dtick=Ea:d8(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=d8(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 d8(e,r){return Math.abs(e/r-1)<.001}We.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,We.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<=dG?v=u:v=A0:t===Im&&f>=S0?u>=S0&&u<=pG?v=u:v=Im:f>=C0?u>=C0&&u<=mG?v=u:v=Fs:t===sn&&f>=sn?v=sn:f>=Ea?v=Ea:t===_l&&f>=_l?v=_l:t===Ti&&f>=Ti&&(v=Ti);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;ysn&&(v=u)}(v>0||a===0)&&(e[a].periodX=n+v/2)}}We.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]=(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:br.extendFlat({},r,r.minor);if(A?We.prepMinorTicks(C,r,t):We.prepTicks(C,t),C.tickmode==="array"){b?(y=[],m=p8(r,!A)):(_=[],g=p8(r,!A));continue}if(C.tickmode==="sync"){y=[],m=LG(r);continue}var k=Vm(u),q=k[0],D=k[1],R=zt(C.dtick),z=a==="log"&&!(R||C.dtick.charAt(0)==="L"),F=We.tickFirst(C,t);if(b){if(r._tmin=F,F=D:O<=D;O=We.tickIncrement(O,Y,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 Q=y.concat(_);l&&y.length&&(Q=Q.slice(1)),Q=Q.sort(function(ze,Ye){return ze.value-Ye.value}).filter(function(ze,Ye,Ze){return Ye===0||ze.value!==Ze[Ye-1].value});var K=Q.map(function(ze,Ye){return ze.minor===void 0&&!ze.skipLabel?Ye:null}).filter(function(ze){return ze!==null});K.forEach(function(ze){s.map(function(Ye){var Ze=ze+Ye;Ze>=0&&Ze-1;se--){if(y[se].drop){y.splice(se,1);continue}y[se].value=Fm(y[se].value,r);var U=r.c2p(y[se].value);(ge?re>U-B:reh||Peh&&(Ze.periodX=h),Pen&&hA0)r/=A0,a=n(10),e.dtick="M"+12*wi(r,a,T0);else if(i>Fs)r/=Fs,e.dtick="M"+wi(r,1,m8);else if(i>Ea){if(e.dtick=wi(r,Ea,e._hasDayOfWeekBreaks?[1,2,7,14]:qG),!t){var l=We.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>Ti?e.dtick=wi(r,Ti,m8):i>df?e.dtick=wi(r,df,y8):i>L0?e.dtick=wi(r,L0,y8):(a=n(10),e.dtick=wi(r,a,T0))}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"+wi(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=wi(r,a,DG)):(e.tick0=0,a=n(10),e.dtick=wi(r,a,T0));if(e.dtick===0&&(e.dtick=1),!zt(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function A8(e){var r=e.dtick;if(e._tickexponent=0,!zt(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>=Ea&&n<=10||r>=Ea*15)e._tickround="d";else if(r>=df&&n<=16||r>=Ti)e._tickround="M";else if(r>=L0&&n<=19||r>=df)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(zt(r)||r.charAt(0)==="L"){var l=e.range.map(e.r2d||Number);zt(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}We.tickIncrement=function(e,r,t,a){var n=t?-1:1;if(zt(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"?M8:T8,s=e+n*.01,u=br.roundUp(br.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)};We.tickFirst=function(e,r){var t=e.r2l||Number,a=br.simpleMap(e.range,t,void 0,void 0,r),n=a[1]=0&&_<=e._length?y:null};if(i&&br.isArrayOrTypedArray(e.ticktext)){var v=br.simpleMap(e.range,e.r2l),h=(Math.abs(v[1]-v[0])-(e._lBreaks||0))/1e4;for(u=0;u"+o;else{var u=yf(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(l+="
")}r.text=l}function PG(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=mf(Math.pow(10,l),e,n,a);else if(zt(i)||s==="D"&&br.mod(l+.01,1)<.1){var u=Math.round(l),f=Math.abs(u),v=e.exponentformat;v==="power"||D0(v)&&Wm(u)?(u===0?r.text=1:u===1?r.text="10":r.text="10"+(u>1?"":bo)+f+"",r.fontSize*=1.25):(v==="e"||v==="E")&&f>2?r.text="1"+v+(u>0?"+":bo)+f:(r.text=mf(Math.pow(10,l),e,"","fakehover"),i==="D1"&&e._id.charAt(0)==="y"&&(r.dy-=r.fontSize/6))}else if(s==="D")r.text=String(Math.round(Math.pow(10,br.mod(l,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(i);if(e.dtick==="D1"){var h=String(r.text).charAt(0);(h==="0"||h==="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 RG(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function zG(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 NG(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=mf(r.x,e,n,a)}function FG(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var l=IG(i);if(l[1]>=100)r.text=mf(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=bo+r.text)}}}else r.text=mf(r.x,e,n,a)}function IG(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 HG=["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 mf(e,r,t,a){var n=e<0,i=r._tickround,l=t||r.exponentformat||"B",o=r._tickexponent,s=We.getTickFormat(r),u=r.separatethousands;if(a){var f={exponentformat:l,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:zt(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};A8(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+=HG[o/3+5])}return n?bo+e:e}We.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 br.syncOrAsync(n.map(function(s){return function(){if(s){var u=We.getFromId(e,s);t||(t={}),t.axShifts=o,t.overlayingShiftedAx=l;var f=We.drawOne(e,u,t);return u._shiftPusher&&Gm(u,u._fullDepth||0,o,!0),u._r=u.range.slice(),u._rl=br.simpleMap(u._r,u.r2l),f}}}))};We.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=We.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=$G(r,a));var g=h[f+"axislayer"],y=r._mainLinePosition,_=y+=r._shift,w=r._mainMirrorPosition,T=r._vals=We.calcTicks(r),b=[r.mirror,_,w].join("_");for(i=0;i